feat : fixes #211 switch off led dongle while screen is off

This commit is contained in:
Julio 2023-11-02 20:06:33 +01:00 committed by Julio MATARRANZ
parent af0781699d
commit 43079f0f46

View File

@ -172,6 +172,12 @@ void dongleDisplay_AnimateCurrentScreen(unsigned long frame)
void dongleDisplay_DoLedStuff(unsigned long frame) void dongleDisplay_DoLedStuff(unsigned long frame)
{ {
#ifdef USE_LED #ifdef USE_LED
if (digitalRead(TFT_BL))
{
FastLED.clear(true);
return;
}
switch (mMonitor.NerdStatus) switch (mMonitor.NerdStatus)
{ {
case NM_waitingConfig: case NM_waitingConfig: