UI: Fix frequency input bug causing incorrect frenquency set

This commit is contained in:
Federico Amedeo Izzo 2020-12-31 14:59:21 +01:00
parent 7a9135d746
commit 4cfc7d2131
1 changed files with 2 additions and 1 deletions

View File

@ -621,11 +621,12 @@ void ui_updateFSM(event_t event, bool *sync_rtx)
// Reset input position and selection // Reset input position and selection
input_position = 1; input_position = 1;
input_set = SET_RX; input_set = SET_RX;
new_rx_frequency = 0;
new_tx_frequency = 0;
// Save pressed number to calculare frequency and show in GUI // Save pressed number to calculare frequency and show in GUI
input_number = input_getPressedNumber(msg); input_number = input_getPressedNumber(msg);
// Calculate portion of the new frequency // Calculate portion of the new frequency
new_rx_frequency = _ui_freq_add_digit(new_rx_frequency, input_position, input_number); new_rx_frequency = _ui_freq_add_digit(new_rx_frequency, input_position, input_number);
new_tx_frequency = 0;
} }
break; break;
// VFO frequency input screen // VFO frequency input screen