From 43079f0f46b28715f4951bbd49d4183dad83f606 Mon Sep 17 00:00:00 2001 From: Julio Date: Thu, 2 Nov 2023 20:06:33 +0100 Subject: [PATCH] feat : fixes #211 switch off led dongle while screen is off --- src/drivers/displays/dongleDisplayDriver.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/drivers/displays/dongleDisplayDriver.cpp b/src/drivers/displays/dongleDisplayDriver.cpp index ca29fca..e790eb9 100644 --- a/src/drivers/displays/dongleDisplayDriver.cpp +++ b/src/drivers/displays/dongleDisplayDriver.cpp @@ -172,6 +172,12 @@ void dongleDisplay_AnimateCurrentScreen(unsigned long frame) void dongleDisplay_DoLedStuff(unsigned long frame) { #ifdef USE_LED + if (digitalRead(TFT_BL)) + { + FastLED.clear(true); + return; + } + switch (mMonitor.NerdStatus) { case NM_waitingConfig: