From c4e7e2962ca633e6bc47cab38c1d8cb1fff01f1b Mon Sep 17 00:00:00 2001 From: Federico Amedeo Izzo Date: Tue, 26 Jan 2021 20:42:59 +0100 Subject: [PATCH] UI: Fix bug causing frequency not being saved when switching from VFO to MEM --- openrtx/src/ui/ui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openrtx/src/ui/ui.c b/openrtx/src/ui/ui.c index 39915d1f..384fdbf1 100644 --- a/openrtx/src/ui/ui.c +++ b/openrtx/src/ui/ui.c @@ -583,12 +583,12 @@ void ui_updateFSM(event_t event, bool *sync_rtx) } else if(msg.keys & KEY_ESC) { + // Save VFO channel + state.vfo_channel = state.channel; int result = _ui_fsm_loadChannel(state.channel_index, sync_rtx); // Read successful and channel is valid if(result != -1) { - // Save VFO channel - state.vfo_channel = state.channel; // Switch to MEM screen state.ui_screen = MAIN_MEM; }