From dcc6a4b5e7fd7074dd7daf17fa8936eafa4828a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Thu, 28 Jul 2022 09:37:16 +0200 Subject: [PATCH] Tryfix LED T-Echo --- src/ButtonThread.h | 7 +++++++ src/shutdown.h | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/src/ButtonThread.h b/src/ButtonThread.h index 49243a93d..1549c748b 100644 --- a/src/ButtonThread.h +++ b/src/ButtonThread.h @@ -144,8 +144,15 @@ class ButtonThread : public concurrency::OSThread screen->startShutdownScreen(); DEBUG_MSG("Shutdown from long press"); playBeep(); +#ifdef PIN_LED1 ledOff(PIN_LED1); +#endif +#ifdef PIN_LED2 ledOff(PIN_LED2); +#endif +#ifdef PIN_LED3 + ledOff(PIN_LED3); +#endif shutdown_on_long_stop = true; } #endif diff --git a/src/shutdown.h b/src/shutdown.h index 57cd1b691..718ed0e0b 100644 --- a/src/shutdown.h +++ b/src/shutdown.h @@ -21,8 +21,15 @@ void powerCommandsCheck() if (shutdownAtMsec) { screen->startShutdownScreen(); playBeep(); +#ifdef PIN_LED1 ledOff(PIN_LED1); +#endif +#ifdef PIN_LED2 ledOff(PIN_LED2); +#endif +#ifdef PIN_LED3 + ledOff(PIN_LED3); +#endif } #endif