From 1e79500fa43177e4bfc59ad895182f316b755b04 Mon Sep 17 00:00:00 2001 From: Armel FAUVEAU Date: Tue, 26 Nov 2024 14:32:04 +0100 Subject: [PATCH] Enable A/B long press on RescueOps --- app/main.c | 7 +++++++ ui/main.c | 14 +++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/app/main.c b/app/main.c index 2c1f7e0..8fd25bb 100644 --- a/app/main.c +++ b/app/main.c @@ -86,6 +86,13 @@ static void processFKeyFunction(const KEY_Code_t Key, const bool beep) #ifdef ENABLE_FEAT_F4HWN_RESCUE_OPS if(gEeprom.MENU_LOCK == true) { + if(Key == 2) { // Enable A/B only + gVfoConfigureMode = VFO_CONFIGURE; + COMMON_SwitchVFOs(); + if (beep) + gBeepToPlay = BEEP_1KHZ_60MS_OPTIONAL; + } + return; // prevent F function if MENU LOCK is true } #endif diff --git a/ui/main.c b/ui/main.c index eed352c..6a69368 100644 --- a/ui/main.c +++ b/ui/main.c @@ -1479,10 +1479,10 @@ void UI_DisplayMain(void) } #ifdef ENABLE_FEAT_F4HWN - #ifdef ENABLE_FEAT_F4HWN_RESCUE_OPS - if(gEeprom.MENU_LOCK == false) - { - #endif + //#ifdef ENABLE_FEAT_F4HWN_RESCUE_OPS + //if(gEeprom.MENU_LOCK == false) + //{ + //#endif if (isMainOnly() && !gDTMF_InputMode) { sprintf(String, "VFO %s", activeTxVFO ? "B" : "A"); @@ -1492,9 +1492,9 @@ void UI_DisplayMain(void) gFrameBuffer[6][i] ^= 0x7F; } } - #ifdef ENABLE_FEAT_F4HWN_RESCUE_OPS - } - #endif + //#ifdef ENABLE_FEAT_F4HWN_RESCUE_OPS + //} + //#endif #endif ST7565_BlitFullScreen();