From 52025a2896ad7eb6bab639506af9403af6f903aa Mon Sep 17 00:00:00 2001 From: Armel FAUVEAU Date: Tue, 1 Oct 2024 01:09:07 +0200 Subject: [PATCH] Red LED slowdown --- app/app.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/app.c b/app/app.c index 5ed209c..782f318 100644 --- a/app/app.c +++ b/app/app.c @@ -1631,9 +1631,9 @@ void APP_TimeSlice500ms(void) } if (gWakeUp) { - static bool swap = true; - swap = !swap; // Alterne l'état à chaque exécution - BK4819_ToggleGpioOut(BK4819_GPIO5_PIN1_RED, swap); + static uint8_t counter = 0; + counter = (counter + 1) % 4; + BK4819_ToggleGpioOut(BK4819_GPIO5_PIN1_RED, (counter == 0)); } #endif