Blink screen slowdown

This commit is contained in:
Armel FAUVEAU
2024-10-01 02:39:52 +02:00
parent 52025a2896
commit 2b1ef8dcab

View File

@@ -1613,15 +1613,15 @@ void APP_TimeSlice500ms(void)
PWM_PLUS0_CH0_COMP = 0; PWM_PLUS0_CH0_COMP = 0;
ST7565_ShutDown(); ST7565_ShutDown();
} }
else if(gSleepModeCountdown_500ms < 60 && gSetting_set_off != 0) else if(gSleepModeCountdown_500ms != 0 && gSleepModeCountdown_500ms < 61 && gSetting_set_off != 0)
{ {
if(gSleepModeCountdown_500ms % 2 == 0) if(gSleepModeCountdown_500ms % 4 == 0)
{ {
PWM_PLUS0_CH0_COMP = 0; PWM_PLUS0_CH0_COMP = value[gEeprom.BACKLIGHT_MAX] * 4; // Max brightness
} }
else else
{ {
PWM_PLUS0_CH0_COMP = value[gEeprom.BACKLIGHT_MAX] * 4; // Max brightness PWM_PLUS0_CH0_COMP = 0;
} }
} }
} }