Calibrate brightness

This commit is contained in:
Armel FAUVEAU
2024-02-07 04:16:03 +01:00
parent 54ecded5ba
commit 677f66e489
2 changed files with 2 additions and 2 deletions

View File

@@ -380,7 +380,7 @@ int MENU_GetLimits(uint8_t menu_id, int32_t *pMin, int32_t *pMax)
*pMax = ARRAY_SIZE(gSubMenu_SET_TOT) - 1; *pMax = ARRAY_SIZE(gSubMenu_SET_TOT) - 1;
break; break;
case MENU_SET_CTR: case MENU_SET_CTR:
*pMin = 0; *pMin = 1;
*pMax = 20; *pMax = 20;
break; break;
case MENU_SET_INV: case MENU_SET_INV:

View File

@@ -287,7 +287,7 @@ void SETTINGS_InitEEPROM(void)
gSetting_set_ptt = (((Data[6] & 0x0F)) < 2) ? ((Data[6] & 0x0F)) : 0; gSetting_set_ptt = (((Data[6] & 0x0F)) < 2) ? ((Data[6] & 0x0F)) : 0;
gSetting_set_inv = (((Data[5] & 0xF0) >> 4) < 2) ? ((Data[5] & 0xF0) >> 4) : 0; gSetting_set_inv = (((Data[5] & 0xF0) >> 4) < 2) ? ((Data[5] & 0xF0) >> 4) : 0;
gSetting_set_ctr = (((Data[5] & 0x0F)) < 21) ? ((Data[5] & 0x0F)) : 11; gSetting_set_ctr = (((Data[5] & 0x0F)) < 21) ? ((Data[5] & 0x0F)) : 10;
// And set special session settings for actions // And set special session settings for actions
gSetting_set_ptt_session = gSetting_set_ptt; gSetting_set_ptt_session = gSetting_set_ptt;