ESP8266: Allow auto modem sleep if power off and sleep permitted (#1184)

* Allow modem sleep if power off and sleep permitted

* Only add auto modem sleep handling for ESP8266

* Add comment and remove redundant condition

Co-authored-by: Aircoookie <cschwinne@gmail.com>
pull/1190/head^2
Peter 2020-09-21 00:00:24 +10:00 zatwierdzone przez GitHub
rodzic edbe8131ab
commit 1313a44ba3
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -84,10 +84,14 @@ void WLED::loop()
handleHue();
handleBlynk();
yield();
if (!offMode)
strip.service();
#ifdef ESP8266
else if (!noWifiSleep)
delay(1); //required to make sure ESP enters modem sleep (see #1184)
#endif
}
yield();
#ifdef ESP8266