FIX #114, #120: Restart monitor mode on PTT release, long press EXIT exits monitor mode

This commit is contained in:
Krzysiek Egzmont
2023-11-23 21:00:37 +01:00
parent d8d4384b20
commit ffdc0e03b5

View File

@@ -755,6 +755,9 @@ void APP_EndTransmission(void)
// send the CTCSS/DCS tail tone - allows the receivers to mute the usual FM squelch tail/crash // send the CTCSS/DCS tail tone - allows the receivers to mute the usual FM squelch tail/crash
RADIO_EnableCxCSS(); RADIO_EnableCxCSS();
RADIO_SetupRegisters(false); RADIO_SetupRegisters(false);
if (gMonitor)
gFlagReconfigureVfos = true; //turn the monitor back on
} }
#ifdef ENABLE_VOX #ifdef ENABLE_VOX
@@ -1715,6 +1718,9 @@ static void ProcessKey(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld)
// cancel user input // cancel user input
cancelUserInputModes(); cancelUserInputModes();
if (gMonitor)
ACTION_Monitor(); //turn off the monitor
} }
if (gScreenToDisplay == DISPLAY_MENU) // 1of11 if (gScreenToDisplay == DISPLAY_MENU) // 1of11