Improve BackLt (35/63)

This commit is contained in:
Armel FAUVEAU
2024-04-05 06:28:51 +02:00
parent 623a86b298
commit 4cd00a0a97
8 changed files with 11 additions and 18 deletions

View File

@@ -504,7 +504,7 @@ void ACTION_BackLightOnDemand(void)
if(gBackLight == false)
{
gBacklightTimeOriginal = gEeprom.BACKLIGHT_TIME;
gEeprom.BACKLIGHT_TIME = 17;
gEeprom.BACKLIGHT_TIME = 61;
gBackLight = true;
}
else
@@ -515,7 +515,7 @@ void ACTION_BackLightOnDemand(void)
}
else
{
gEeprom.BACKLIGHT_TIME = 17;
gEeprom.BACKLIGHT_TIME = 61;
}
}

View File

@@ -1483,7 +1483,7 @@ void APP_TimeSlice500ms(void)
// don't turn off backlight if user is in backlight menu option
&& !(gScreenToDisplay == DISPLAY_MENU && (UI_MENU_GetCurrentMenuId() == MENU_ABR || UI_MENU_GetCurrentMenuId() == MENU_ABR_MAX))
&& --gBacklightCountdown_500ms == 0
&& gEeprom.BACKLIGHT_TIME < 17
&& gEeprom.BACKLIGHT_TIME < 61
) {
BACKLIGHT_TurnOff();
}

View File

@@ -129,7 +129,7 @@ int MENU_GetLimits(uint8_t menu_id, int32_t *pMin, int32_t *pMax)
case MENU_ABR:
//*pMin = 0;
*pMax = 17;
*pMax = 61;
break;
case MENU_ABR_MIN: