Add SetInv menu

This commit is contained in:
Armel FAUVEAU
2024-02-06 05:00:55 +01:00
parent c2d5fc18b5
commit 89d308293f
7 changed files with 33 additions and 7 deletions

View File

@@ -130,6 +130,7 @@ const t_menu_item MenuList[] =
{"SetPtt", VOICE_ID_INVALID, MENU_SET_PTT },
{"SetTot", VOICE_ID_INVALID, MENU_SET_TOT },
{"SetCtr", VOICE_ID_INVALID, MENU_SET_CTR },
{"SetInv", VOICE_ID_INVALID, MENU_SET_INV },
#endif
// hidden menu items from here on
// enabled if pressing both the PTT and upper side button at power-on
@@ -683,9 +684,9 @@ void UI_DisplayMenu(void)
case MENU_350EN:
#ifndef ENABLE_FEAT_F4HWN
case MENU_SCREN:
#endif
strcpy(String, gSubMenu_OFF_ON[gSubMenuSelection]);
break;
#endif
case MENU_MEM_CH:
case MENU_1_CALL:
@@ -911,6 +912,11 @@ void UI_DisplayMenu(void)
gSetting_set_ctr = gSubMenuSelection;
ST7565_Contrast();
break;
case MENU_SET_INV:
strcpy(String, gSubMenu_OFF_ON[gSubMenuSelection]);
ST7565_Contrast();
break;
#endif
}

View File

@@ -126,6 +126,7 @@ enum
MENU_SET_PTT,
MENU_SET_TOT,
MENU_SET_CTR,
MENU_SET_INV,
#endif
MENU_BATCAL, // battery voltage calibration
MENU_F1SHRT,