UI: fixed locked callsign entry after hash keypress

pull/276/head^2
Morgan Diepart 2023-10-22 17:42:47 -07:00 zatwierdzone przez Silvano Seva
rodzic 9cae1cfd3e
commit 4c240a38be
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -1102,7 +1102,11 @@ static void _ui_textInputKeypad(char *buf, uint8_t max_len, kbd_msg_t msg,
// Get number of symbols related to currently pressed key
uint8_t num_symbols = 0;
if(callsign)
{
num_symbols = strlen(symbols_ITU_T_E161_callsign[num_key]);
if(num_symbols == 0)
return;
}
else
num_symbols = strlen(symbols_ITU_T_E161[num_key]);