Update/fix the channel name edit menu

This commit is contained in:
OneOfEleven 2023-09-20 12:02:50 +01:00
parent e3c4f1d28c
commit 1424ce8401
4 changed files with 11 additions and 8 deletions

View File

@ -1679,16 +1679,19 @@ void MENU_ProcessKeys(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld)
case KEY_F: case KEY_F:
if (gMenuCursor == MENU_MEM_NAME && edit_index >= 0) if (gMenuCursor == MENU_MEM_NAME && edit_index >= 0)
{ // currently editing the channel name { // currently editing the channel name
gBeepToPlay = BEEP_1KHZ_60MS_OPTIONAL; if (!bKeyHeld && bKeyPressed)
if (edit_index < 10)
{ {
edit[edit_index] = ' '; gBeepToPlay = BEEP_1KHZ_60MS_OPTIONAL;
if (++edit_index >= 10) if (edit_index < 10)
{ // exit edit {
gFlagAcceptSetting = false; edit[edit_index] = ' ';
gAskForConfirmation = 1; if (++edit_index >= 10)
{ // exit edit
gFlagAcceptSetting = false;
gAskForConfirmation = 1;
}
gRequestDisplayScreen = DISPLAY_MENU;
} }
gRequestDisplayScreen = DISPLAY_MENU;
} }
break; break;
} }

BIN
firmware

Binary file not shown.

Binary file not shown.

Binary file not shown.