From 02684c4d0233398535a16c5980e06d44e8d313a3 Mon Sep 17 00:00:00 2001 From: Armel FAUVEAU Date: Mon, 11 Nov 2024 03:11:00 +0100 Subject: [PATCH] Improve frequency input --- app/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/main.c b/app/main.c index f69e3a6..a7a8ab1 100644 --- a/app/main.c +++ b/app/main.c @@ -427,7 +427,7 @@ static void MAIN_Key_DIGITS(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld) if (IS_MR_CHANNEL(gTxVfo->CHANNEL_SAVE)) { // user is entering channel number - gKeyInputCountdown = (key_input_timeout_500ms / 5); // short time... + gKeyInputCountdown = (key_input_timeout_500ms / 4); // short time... #ifdef ENABLE_VOICE gAnotherVoiceID = (VOICE_ID_t)Key; @@ -454,8 +454,8 @@ static void MAIN_Key_DIGITS(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld) // do nothing return; } - - gKeyInputCountdown = (key_input_timeout_500ms / 5); // short time... + + gKeyInputCountdown = (gInputBoxIndex == totalDigits) ? (key_input_timeout_500ms / 16) : (key_input_timeout_500ms / 4); const char *inputStr = INPUTBOX_GetAscii(); uint8_t inputLength = gInputBoxIndex;