Enable A/B long press on RescueOps

This commit is contained in:
Armel FAUVEAU
2024-11-26 14:32:04 +01:00
parent 838253dfa1
commit 1e79500fa4
2 changed files with 14 additions and 7 deletions

View File

@@ -86,6 +86,13 @@ static void processFKeyFunction(const KEY_Code_t Key, const bool beep)
#ifdef ENABLE_FEAT_F4HWN_RESCUE_OPS #ifdef ENABLE_FEAT_F4HWN_RESCUE_OPS
if(gEeprom.MENU_LOCK == true) { 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 return; // prevent F function if MENU LOCK is true
} }
#endif #endif

View File

@@ -1479,10 +1479,10 @@ void UI_DisplayMain(void)
} }
#ifdef ENABLE_FEAT_F4HWN #ifdef ENABLE_FEAT_F4HWN
#ifdef ENABLE_FEAT_F4HWN_RESCUE_OPS //#ifdef ENABLE_FEAT_F4HWN_RESCUE_OPS
if(gEeprom.MENU_LOCK == false) //if(gEeprom.MENU_LOCK == false)
{ //{
#endif //#endif
if (isMainOnly() && !gDTMF_InputMode) if (isMainOnly() && !gDTMF_InputMode)
{ {
sprintf(String, "VFO %s", activeTxVFO ? "B" : "A"); sprintf(String, "VFO %s", activeTxVFO ? "B" : "A");
@@ -1492,9 +1492,9 @@ void UI_DisplayMain(void)
gFrameBuffer[6][i] ^= 0x7F; gFrameBuffer[6][i] ^= 0x7F;
} }
} }
#ifdef ENABLE_FEAT_F4HWN_RESCUE_OPS //#ifdef ENABLE_FEAT_F4HWN_RESCUE_OPS
} //}
#endif //#endif
#endif #endif
ST7565_BlitFullScreen(); ST7565_BlitFullScreen();