From 4c240a38be6e9d2ab859b137eb4bfd665930c9ca Mon Sep 17 00:00:00 2001 From: Morgan Diepart Date: Sun, 22 Oct 2023 17:42:47 -0700 Subject: [PATCH] UI: fixed locked callsign entry after hash keypress --- openrtx/src/ui/default/ui.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openrtx/src/ui/default/ui.c b/openrtx/src/ui/default/ui.c index 1c36e7a9..508abbd2 100644 --- a/openrtx/src/ui/default/ui.c +++ b/openrtx/src/ui/default/ui.c @@ -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]);