From ffdc0e03b5ea07ddde1baca7e09bf4737dcee86f Mon Sep 17 00:00:00 2001 From: Krzysiek Egzmont Date: Thu, 23 Nov 2023 21:00:37 +0100 Subject: [PATCH] FIX #114, #120: Restart monitor mode on PTT release, long press EXIT exits monitor mode --- app/app.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/app.c b/app/app.c index 8ab02bd..8146e36 100644 --- a/app/app.c +++ b/app/app.c @@ -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 RADIO_EnableCxCSS(); RADIO_SetupRegisters(false); + + if (gMonitor) + gFlagReconfigureVfos = true; //turn the monitor back on } #ifdef ENABLE_VOX @@ -1715,6 +1718,9 @@ static void ProcessKey(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld) // cancel user input cancelUserInputModes(); + + if (gMonitor) + ACTION_Monitor(); //turn off the monitor } if (gScreenToDisplay == DISPLAY_MENU) // 1of11