Skip to content

Commit

Permalink
Fix #286: Lack of continuous tuning and monitor lockout while holding…
Browse files Browse the repository at this point in the history
… up/down button in monitor mode.
  • Loading branch information
egzumer committed Jan 13, 2024
1 parent 04b0bd8 commit 8941576
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/app.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions app/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8941576

Please sign in to comment.