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

This commit is contained in:
Federico Amedeo Izzo 2020-12-30 20:11:05 +01:00
parent 3309fe6fa1
commit 58876ec4f2
1 changed files with 2 additions and 0 deletions

View File

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