Skip to content

Commit

Permalink
Revert buggy change... again...
Browse files Browse the repository at this point in the history
  • Loading branch information
armel committed Jul 15, 2024
1 parent ab61f2b commit 88ef0d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/app.c
Original file line number Diff line number Diff line change
Expand Up @@ -2026,7 +2026,7 @@ static void ProcessKey(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld)
}

if (gRequestSaveChannel > 0) { // TODO: remove the gRequestSaveChannel, why use global variable for that??
if (!bKeyHeld && !bKeyPressed) {
if (!bKeyHeld) {
SETTINGS_SaveChannel(gTxVfo->CHANNEL_SAVE, gEeprom.TX_VFO, gTxVfo, gRequestSaveChannel);

if (!SCANNER_IsScanning() && gVfoConfigureMode == VFO_CONFIGURE_NONE)
Expand Down

1 comment on commit 88ef0d9

@prokrypt
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whups. Looks like you forgot the prevent-exiting-from-menu bit...
if ((!bKeyHeld && !bKeyPressed) || UI_MENU_GetCurrentMenuId()) {

Please sign in to comment.