UI: Set TX frequency together with RX frequency keeping previous offset

replace/fae5e7eb3f59a0f5ca095910d0366c3a2ff70e37
Federico Amedeo Izzo 2020-12-30 20:11:05 +01:00
rodzic 3309fe6fa1
commit 58876ec4f2
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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;
}
}