Fix bug #551 - Turn the led off before shutting down.

Fix bug #551 - Turn the led off before shutting down.
1.2-legacy
Jm Casler 2020-12-11 23:03:32 -08:00
rodzic e82752c777
commit 5852caa61c
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -236,6 +236,7 @@ class ButtonThread : public OSThread
if (millis() - longPressTime > 10 * 1000) { if (millis() - longPressTime > 10 * 1000) {
#ifdef TBEAM_V10 #ifdef TBEAM_V10
if (axp192_found == true) { if (axp192_found == true) {
setLed(false);
power->shutdown(); power->shutdown();
} }
#endif #endif