From 894157688717d1e7616c92a3482f9ad1731ddb2c Mon Sep 17 00:00:00 2001 From: Krzysiek Egzmont Date: Sat, 13 Jan 2024 23:35:33 +0100 Subject: [PATCH] Fix #286: Lack of continuous tuning and monitor lockout while holding up/down button in monitor mode. --- app/app.c | 7 +++---- app/main.c | 2 ++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/app.c b/app/app.c index 0122e8393..f4ed8322f 100644 --- a/app/app.c +++ b/app/app.c @@ -1590,10 +1590,9 @@ static void ProcessKey(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld) SETTINGS_SaveChannel(gTxVfo->CHANNEL_SAVE, gEeprom.TX_VFO, gTxVfo, flagSaveChannel); flagSaveChannel = false; - RADIO_ConfigureChannel(gEeprom.TX_VFO, VFO_CONFIGURE); - RADIO_SetupRegisters(true); - - GUI_SelectNextDisplay(DISPLAY_MAIN); + if (!SCANNER_IsScanning() && gVfoConfigureMode == VFO_CONFIGURE_NONE) + // gVfoConfigureMode is so as we don't wipe out previously setting this variable elsewhere + gVfoConfigureMode = VFO_CONFIGURE; } } else { // key pressed or held diff --git a/app/main.c b/app/main.c index e5e146fe6..a0431ccfc 100644 --- a/app/main.c +++ b/app/main.c @@ -639,6 +639,8 @@ static void MAIN_Key_UP_DOWN(bool bKeyPressed, bool bKeyHeld, int8_t Direction) return; } gTxVfo->freq_config_RX.Frequency = frequency; + BK4819_SetFrequency(frequency); + BK4819_RX_TurnOn(); gRequestSaveChannel = 1; return; }