UI: fixed locked callsign entry after hash keypress

This commit is contained in:
Morgan Diepart 2023-10-22 17:42:47 -07:00 committed by Silvano Seva
parent 9cae1cfd3e
commit 4c240a38be
1 changed files with 4 additions and 0 deletions

View File

@ -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 // Get number of symbols related to currently pressed key
uint8_t num_symbols = 0; uint8_t num_symbols = 0;
if(callsign) if(callsign)
{
num_symbols = strlen(symbols_ITU_T_E161_callsign[num_key]); num_symbols = strlen(symbols_ITU_T_E161_callsign[num_key]);
if(num_symbols == 0)
return;
}
else else
num_symbols = strlen(symbols_ITU_T_E161[num_key]); num_symbols = strlen(symbols_ITU_T_E161[num_key]);