mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-04 20:17:28 +00:00
Fix for string terminator overwriting
This commit is contained in:
1 parent
8977a0a112
commit
a3c03f18f0
1 file changed
+3
@@ -1494,6 +1494,9 @@ static void MENU_Key_0_to_9(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld)
|
||||
|
||||
if (UI_MENU_GetCurrentMenuId() == MENU_MEM_NAME && edit_index >= 0)
|
||||
{ // currently editing the channel name
|
||||
if (edit_index >= 10)
|
||||
return;
|
||||
|
||||
uint8_t key_idx = Key - KEY_0;
|
||||
|
||||
if (bKeyHeld)
|
||||
|
||||
Reference in new issue
Block a user