From 4cfc7d2131477c9b3eb1c70e5579f2c3c74af1cb Mon Sep 17 00:00:00 2001 From: Federico Amedeo Izzo Date: Thu, 31 Dec 2020 14:59:21 +0100 Subject: [PATCH] UI: Fix frequency input bug causing incorrect frenquency set --- openrtx/src/ui.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openrtx/src/ui.c b/openrtx/src/ui.c index aacaaa76..c91f420f 100644 --- a/openrtx/src/ui.c +++ b/openrtx/src/ui.c @@ -621,11 +621,12 @@ void ui_updateFSM(event_t event, bool *sync_rtx) // Reset input position and selection input_position = 1; input_set = SET_RX; + new_rx_frequency = 0; + new_tx_frequency = 0; // Save pressed number to calculare frequency and show in GUI input_number = input_getPressedNumber(msg); // Calculate portion of the new frequency new_rx_frequency = _ui_freq_add_digit(new_rx_frequency, input_position, input_number); - new_tx_frequency = 0; } break; // VFO frequency input screen