0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-19 06:39:49 +03:00

channel name edit menu update

This commit is contained in:
OneOfEleven
2023-11-06 18:52:18 +00:00
parent 6f2fb9c7d6
commit 03fcb9570d
9 changed files with 45 additions and 34 deletions

View File

@ -844,7 +844,7 @@ void UI_DisplayMenu(void)
case MENU_MEM_DEL:
{
char s[11];
const bool valid = RADIO_CheckValidChannel(g_sub_menu_selection, false, 0);
const bool valid = RADIO_channel_valid(g_sub_menu_selection, false, 0);
UI_GenerateChannelStringEx(str, valid ? "CH-" : "", g_sub_menu_selection);
@ -869,7 +869,7 @@ void UI_DisplayMenu(void)
case MENU_MEM_NAME:
{
const bool valid = RADIO_CheckValidChannel(g_sub_menu_selection, false, 0);
const bool valid = RADIO_channel_valid(g_sub_menu_selection, false, 0);
const unsigned int y = (!g_in_sub_menu || g_edit_index < 0) ? 1 : 0;
UI_GenerateChannelStringEx(str, valid ? "CH-" : "", g_sub_menu_selection);