Add exclude memory channel

This commit is contained in:
Armel FAUVEAU
2024-03-28 06:41:36 +01:00
parent 710f4728b3
commit b353bb72d6

View File

@@ -534,15 +534,18 @@ static void MAIN_Key_EXIT(bool bKeyPressed, bool bKeyHeld)
}
}
static void MAIN_Key_MENU(const bool bKeyPressed, const bool bKeyHeld)
static void MAIN_Key_MENU(bool bKeyPressed, bool bKeyHeld)
{
//static uint8_t block = 0;
if (bKeyPressed && !bKeyHeld) // menu key pressed
gBeepToPlay = BEEP_1KHZ_60MS_OPTIONAL;
if (bKeyHeld) { // menu key held down (long press)
if (bKeyPressed) { // long press MENU key
#ifdef ENABLE_FEAT_F4HWN
if(gScanStateDir != SCAN_OFF)
if(gScanStateDir != SCAN_OFF && gEeprom.SCAN_LIST_DEFAULT < 2)
{
if(FUNCTION_IsRx())
{
@@ -554,7 +557,8 @@ static void MAIN_Key_MENU(const bool bKeyPressed, const bool bKeyHeld)
gVfoConfigureMode = VFO_CONFIGURE;
gFlagResetVfos = true;
//gDebug = (uint8_t)lastFoundFrqOrChanOld;
//block++;
//gDebug = block;
lastFoundFrqOrChan = lastFoundFrqOrChanOld;
@@ -565,8 +569,6 @@ static void MAIN_Key_MENU(const bool bKeyPressed, const bool bKeyHeld)
}
#endif
if (bKeyPressed) { // long press MENU key
gWasFKeyPressed = false;
if (gScreenToDisplay == DISPLAY_MAIN) {