From fec2506993a810c0d955bf01f21715904e762f87 Mon Sep 17 00:00:00 2001 From: Armel FAUVEAU Date: Sat, 28 Sep 2024 05:25:29 +0200 Subject: [PATCH] Alert SetOff --- app/app.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/app.c b/app/app.c index eaf06c2..6c56173 100644 --- a/app/app.c +++ b/app/app.c @@ -1598,6 +1598,17 @@ void APP_TimeSlice500ms(void) PWM_PLUS0_CH0_COMP = 0; ST7565_ShutDown(); } + else if(gSleepModeCountdown_500ms < 60 && gSetting_set_off != 0) + { + if(gSleepModeCountdown_500ms % 2 == 0) + { + PWM_PLUS0_CH0_COMP = 0; + } + else + { + PWM_PLUS0_CH0_COMP = 1020; // Max brightness + } + } } else {