Add SetTmr

This commit is contained in:
Armel FAUVEAU
2024-08-15 04:34:00 +02:00
parent 75480cac10
commit e008313170
8 changed files with 53 additions and 5 deletions

View File

@@ -146,6 +146,7 @@ const t_menu_item MenuList[] =
{"SetLck", MENU_SET_LCK },
{"SetMet", MENU_SET_MET },
{"SetGui", MENU_SET_GUI },
{"SetTmr", MENU_SET_TMR },
#endif
// hidden menu items from here on
// enabled if pressing both the PTT and upper side button at power-on
@@ -737,6 +738,9 @@ void UI_DisplayMenu(void)
case MENU_350EN:
#ifndef ENABLE_FEAT_F4HWN
case MENU_SCREN:
#endif
#ifdef ENABLE_FEAT_F4HWN
case MENU_SET_TMR:
#endif
strcpy(String, gSubMenu_OFF_ON[gSubMenuSelection]);
break;

View File

@@ -135,6 +135,7 @@ enum
MENU_SET_LCK,
MENU_SET_MET,
MENU_SET_GUI,
MENU_SET_TMR,
#endif
MENU_BATCAL, // battery voltage calibration
MENU_F1SHRT,

View File

@@ -143,11 +143,11 @@ void UI_DisplayStatus()
if(!SCANNER_IsScanning()) {
#ifdef ENABLE_FEAT_F4HWN_RX_TX_TIMER
if(gCurrentFunction == FUNCTION_TRANSMIT)
if(gCurrentFunction == FUNCTION_TRANSMIT && gSetting_set_tmr == true)
{
convertTime(line, 0);
}
else if(FUNCTION_IsRx())
else if(FUNCTION_IsRx() && gSetting_set_tmr == true)
{
convertTime(line, 1);
}