From 60a28c1a0fc5c969fc302e7b990405b8b7d02097 Mon Sep 17 00:00:00 2001 From: wu58430 Date: Mon, 4 Dec 2023 22:50:59 +0800 Subject: [PATCH] MDC UI --- app/menu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/menu.c b/app/menu.c index 0b0ac94..5a4f0cc 100644 --- a/app/menu.c +++ b/app/menu.c @@ -1449,8 +1449,8 @@ static void MENU_Key_MENU(const bool bKeyPressed, const bool bKeyHeld) if (edit_index >= 0 && edit_index < 4) { // editing the channel name characters - if (++edit_index < 4) - return; // next char + if (++edit_index >= 4) + { // exit if (memcmp(edit_original, edit, sizeof(edit_original)) == 0) @@ -1464,6 +1464,7 @@ static void MENU_Key_MENU(const bool bKeyPressed, const bool bKeyHeld) gFlagAcceptSetting = false; gAskForConfirmation = 0; } + } } }