Tryfix LED T-Echo

pull/1572/head
Thomas Göttgens 2022-07-28 09:37:16 +02:00
rodzic c88ba583c6
commit dcc6a4b5e7
2 zmienionych plików z 14 dodań i 0 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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