Move up affectation

This commit is contained in:
Armel FAUVEAU
2024-09-25 01:50:25 +02:00
parent 34fac7e7eb
commit df9922c370

View File

@@ -77,6 +77,10 @@ static void BACKLIGHT_Sound(void)
void BACKLIGHT_TurnOn(void) void BACKLIGHT_TurnOn(void)
{ {
#ifdef ENABLE_FEAT_F4HWN_SLEEP
gSleepModeCountdown_500ms = gSetting_set_off * 120;
#endif
#ifdef ENABLE_FEAT_F4HWN #ifdef ENABLE_FEAT_F4HWN
gBacklightBrightnessOld = BACKLIGHT_GetBrightness(); gBacklightBrightnessOld = BACKLIGHT_GetBrightness();
#endif #endif
@@ -121,10 +125,6 @@ void BACKLIGHT_TurnOn(void)
gBacklightCountdown_500ms = 0; gBacklightCountdown_500ms = 0;
break; break;
} }
#ifdef ENABLE_FEAT_F4HWN_SLEEP
gSleepModeCountdown_500ms = gSetting_set_off * 120;
#endif
} }
void BACKLIGHT_TurnOff() void BACKLIGHT_TurnOff()