mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-02 03:15:37 +00:00
Allow unlock from RF LOG display
This commit is contained in:
1 parent
b44df132d0
commit
29725ed704
2 files changed
+8
-1
No files matched your search
+7
-1
@@ -9,6 +9,7 @@
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "app/common.h"
|
||||
#include "app/generic.h"
|
||||
#include "app/rxtx_log.h"
|
||||
#include "audio.h"
|
||||
@@ -1059,7 +1060,12 @@ void RXTX_LOG_ProcessKeys(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld)
|
||||
case KEY_F:
|
||||
// GENERIC_Key_F only toggles the flag on the MAIN screen, so
|
||||
// handle it here: F arms a go-to-first/last modifier for UP/DOWN.
|
||||
if (bKeyPressed && !bKeyHeld) {
|
||||
if (bKeyPressed && bKeyHeld) {
|
||||
RXTX_LOG_CancelClearConfirm();
|
||||
HideFKeyIcon();
|
||||
COMMON_KeypadLockToggle();
|
||||
gUpdateStatus = true;
|
||||
} else if (bKeyPressed) {
|
||||
RXTX_LOG_CancelClearConfirm();
|
||||
gWasFKeyPressed = !gWasFKeyPressed;
|
||||
if (gWasFKeyPressed)
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#ifndef FUNCTIONS_H
|
||||
#define FUNCTIONS_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
enum FUNCTION_Type_t
|
||||
|
||||
Reference in new issue
Block a user