mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-06-20 06:58:39 +03:00
Battery volt/percent now has menu setting instead of compile option
This commit is contained in:
12
ui/menu.c
12
ui/menu.c
@ -95,6 +95,7 @@ const char MenuList[][7] =
|
||||
"PONMSG",
|
||||
"ROGER",
|
||||
"BATVOL", // was "VOL"
|
||||
"BATTXT",
|
||||
"MODE", // was "AM"
|
||||
#ifdef ENABLE_NOAA
|
||||
"NOAA-S",
|
||||
@ -248,6 +249,13 @@ const char gSubMenu_F_LOCK[6][4] =
|
||||
};
|
||||
#endif
|
||||
|
||||
const char gSubMenu_BAT_TXT[3][8] =
|
||||
{
|
||||
"NONE",
|
||||
"VOLTAGE",
|
||||
"PERCENT"
|
||||
};
|
||||
|
||||
bool gIsInSubMenu;
|
||||
uint8_t gMenuCursor;
|
||||
int8_t gMenuScrollDirection;
|
||||
@ -523,6 +531,10 @@ void UI_DisplayMenu(void)
|
||||
strcpy(String, gSubMenu_PTT_ID[gSubMenuSelection]);
|
||||
break;
|
||||
|
||||
case MENU_BAT_TXT:
|
||||
strcpy(String, gSubMenu_BAT_TXT[gSubMenuSelection]);
|
||||
break;
|
||||
|
||||
case MENU_D_LIST:
|
||||
gIsDtmfContactValid = DTMF_GetContact((int)gSubMenuSelection - 1, Contact);
|
||||
if (!gIsDtmfContactValid)
|
||||
|
Reference in New Issue
Block a user