Red is dead

This commit is contained in:
Armel FAUVEAU
2024-09-25 01:28:28 +02:00
parent 4a144cb522
commit 34fac7e7eb

View File

@@ -1570,7 +1570,6 @@ void APP_TimeSlice500ms(void)
#ifdef ENABLE_FEAT_F4HWN_SLEEP #ifdef ENABLE_FEAT_F4HWN_SLEEP
if (gSleepModeCountdown_500ms == gSetting_set_off * 120 && gWakeUp) { if (gSleepModeCountdown_500ms == gSetting_set_off * 120 && gWakeUp) {
ST7565_Init(); ST7565_Init();
BK4819_ToggleGpioOut(BK4819_GPIO6_PIN2_GREEN, false);
BK4819_ToggleGpioOut(BK4819_GPIO5_PIN1_RED, false); BK4819_ToggleGpioOut(BK4819_GPIO5_PIN1_RED, false);
gWakeUp = false; gWakeUp = false;
} }
@@ -1586,7 +1585,6 @@ void APP_TimeSlice500ms(void)
if (gWakeUp) { if (gWakeUp) {
static bool swap = true; static bool swap = true;
swap = !swap; // Alterne l'état à chaque exécution swap = !swap; // Alterne l'état à chaque exécution
BK4819_ToggleGpioOut(BK4819_GPIO6_PIN2_GREEN, swap);
BK4819_ToggleGpioOut(BK4819_GPIO5_PIN1_RED, swap); BK4819_ToggleGpioOut(BK4819_GPIO5_PIN1_RED, swap);
FUNCTION_Select(FUNCTION_POWER_SAVE); FUNCTION_Select(FUNCTION_POWER_SAVE);
} }