Add SetTot menu
This commit is contained in:
13
ui/menu.c
13
ui/menu.c
@@ -126,6 +126,7 @@ const t_menu_item MenuList[] =
|
||||
#ifdef ENABLE_FEAT_F4HWN
|
||||
{"SetLow", VOICE_ID_INVALID, MENU_SET_LOW },
|
||||
{"SetPtt", VOICE_ID_INVALID, MENU_SET_PTT },
|
||||
{"SetTot", VOICE_ID_INVALID, MENU_SET_TOT },
|
||||
#endif
|
||||
// hidden menu items from here on
|
||||
// enabled if pressing both the PTT and upper side button at power-on
|
||||
@@ -352,6 +353,14 @@ const char gSubMenu_SCRAMBLER[][7] =
|
||||
"Classic",
|
||||
"OnePush"
|
||||
};
|
||||
|
||||
const char gSubMenu_SET_TOT[][7] =
|
||||
{
|
||||
"Off",
|
||||
"Sound",
|
||||
"Visual",
|
||||
"All"
|
||||
};
|
||||
#endif
|
||||
|
||||
const t_sidefunction gSubMenu_SIDEFUNCTIONS[] =
|
||||
@@ -880,6 +889,10 @@ void UI_DisplayMenu(void)
|
||||
case MENU_SET_PTT:
|
||||
strcpy(String, gSubMenu_SET_PTT[gSubMenuSelection]);
|
||||
break;
|
||||
|
||||
case MENU_SET_TOT:
|
||||
strcpy(String, gSubMenu_SET_TOT[gSubMenuSelection]);
|
||||
break;
|
||||
#endif
|
||||
|
||||
}
|
||||
|
@@ -120,6 +120,7 @@ enum
|
||||
#ifdef ENABLE_FEAT_F4HWN
|
||||
MENU_SET_LOW,
|
||||
MENU_SET_PTT,
|
||||
MENU_SET_TOT,
|
||||
#endif
|
||||
MENU_BATCAL, // battery voltage calibration
|
||||
MENU_F1SHRT,
|
||||
@@ -156,6 +157,7 @@ extern const char gSubMenu_D_RSP[4][11];
|
||||
#ifdef ENABLE_FEAT_F4HWN
|
||||
extern const char gSubMenu_SET_LOW[5][7];
|
||||
extern const char gSubMenu_SET_PTT[2][8];
|
||||
extern const char gSubMenu_SET_TOT[4][7];
|
||||
#endif
|
||||
|
||||
extern const char* const gSubMenu_PTT_ID[5];
|
||||
|
Reference in New Issue
Block a user