From 58876ec4f203e663e98e070c0c72f11990abcae8 Mon Sep 17 00:00:00 2001 From: Federico Amedeo Izzo Date: Wed, 30 Dec 2020 20:11:05 +0100 Subject: [PATCH] UI: Set TX frequency together with RX frequency keeping previous offset --- openrtx/src/ui.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openrtx/src/ui.c b/openrtx/src/ui.c index 9f74956c..06f7bcb3 100644 --- a/openrtx/src/ui.c +++ b/openrtx/src/ui.c @@ -575,7 +575,9 @@ void ui_updateFSM(event_t event, bool *sync_rtx) if(input_position >= (FREQ_DIGITS - 1)) { // Save inserted frequency + freq_t offset = state.channel.rx_frequency - state.channel.tx_frequency; state.channel.rx_frequency = new_rx_frequency; + state.channel.tx_frequency = new_rx_frequency + offset; state.ui_screen = VFO_MAIN; } }