From 13a8ff9e407c942e46792f26ca411fdacc042548 Mon Sep 17 00:00:00 2001 From: Federico Amedeo Izzo Date: Wed, 30 Dec 2020 22:55:17 +0100 Subject: [PATCH] UI: Frequency set minor fix --- openrtx/src/ui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openrtx/src/ui.c b/openrtx/src/ui.c index 8b2291e0..bca3e6bf 100644 --- a/openrtx/src/ui.c +++ b/openrtx/src/ui.c @@ -653,7 +653,7 @@ void ui_updateFSM(event_t event, bool *sync_rtx) input_number = input_getPressedNumber(msg); if(input_set == SET_RX) { - if(input_position == 0) + if(input_position == 1) new_rx_frequency = 0; // Calculate portion of the new RX frequency new_rx_frequency += input_number * @@ -670,7 +670,7 @@ void ui_updateFSM(event_t event, bool *sync_rtx) } else if(input_set == SET_TX) { - if(input_position == 0) + if(input_position == 1) new_tx_frequency = 0; // Calculate portion of the new TX frequency new_tx_frequency += input_number *