mirror of
https://github.com/egzumer/uv-k5-firmware-custom
synced 2024-11-22 18:44:58 +00:00
Update/fix the channel name edit menu
This commit is contained in:
parent
e3c4f1d28c
commit
1424ce8401
19
app/menu.c
19
app/menu.c
@ -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.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user