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>
This commit is contained in:
parent
edbe8131ab
commit
1313a44ba3
@ -84,10 +84,14 @@ void WLED::loop()
|
|||||||
|
|
||||||
handleHue();
|
handleHue();
|
||||||
handleBlynk();
|
handleBlynk();
|
||||||
|
|
||||||
yield();
|
yield();
|
||||||
|
|
||||||
if (!offMode)
|
if (!offMode)
|
||||||
strip.service();
|
strip.service();
|
||||||
|
#ifdef ESP8266
|
||||||
|
else if (!noWifiSleep)
|
||||||
|
delay(1); //required to make sure ESP enters modem sleep (see #1184)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
yield();
|
yield();
|
||||||
#ifdef ESP8266
|
#ifdef ESP8266
|
||||||
|
Loading…
Reference in New Issue
Block a user