UI: Fix bug where frequency set with number keys wouldn't apply

This commit is contained in:
Federico Amedeo Izzo 2021-01-01 10:49:12 +01:00
parent f4c4a72584
commit 50b93904c1
1 changed files with 3 additions and 0 deletions

View File

@ -736,6 +736,7 @@ void ui_updateFSM(event_t event, bool *sync_rtx)
{ {
state.channel.rx_frequency = new_rx_frequency; state.channel.rx_frequency = new_rx_frequency;
state.channel.tx_frequency = new_rx_frequency; state.channel.tx_frequency = new_rx_frequency;
*sync_rtx = true;
} }
} }
// Otherwise set both frequencies // Otherwise set both frequencies
@ -746,6 +747,7 @@ void ui_updateFSM(event_t event, bool *sync_rtx)
{ {
state.channel.rx_frequency = new_rx_frequency; state.channel.rx_frequency = new_rx_frequency;
state.channel.tx_frequency = new_tx_frequency; state.channel.tx_frequency = new_tx_frequency;
*sync_rtx = true;
} }
} }
state.ui_screen = VFO_MAIN; state.ui_screen = VFO_MAIN;
@ -802,6 +804,7 @@ void ui_updateFSM(event_t event, bool *sync_rtx)
{ {
state.channel.rx_frequency = new_rx_frequency; state.channel.rx_frequency = new_rx_frequency;
state.channel.tx_frequency = new_tx_frequency; state.channel.tx_frequency = new_tx_frequency;
*sync_rtx = true;
} }
state.ui_screen = VFO_MAIN; state.ui_screen = VFO_MAIN;
} }