Disable sleep on core 2.4.1

5.12.0m
* Disable sleep when using Esp/Arduino core 2.4.1 (#2559)
This commit is contained in:
Theo Arends 2018-04-28 11:17:16 +02:00
parent 4675dbea1c
commit e1011d3cdd
2 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,7 @@
/* 5.12.0m
* Reinit timers to accomodate random window (#2447)
* Remove sonoff-xxl
* Disable sleep when using Esp/Arduino core 2.4.1 (#2559)
* Add sonoff-classic, sonoff-allsensors and sonoff-knx
* Add some coloring to important web buttons
* Add rule variables and teleperiod trigger to accomodate user HA messages

View File

@ -615,7 +615,9 @@ void WifiBegin(uint8_t flag)
delay(200);
WiFi.mode(WIFI_STA); // Disable AP mode
if (Settings.sleep) {
#ifndef ARDUINO_ESP8266_RELEASE_2_4_1 // See https://github.com/arendst/Sonoff-Tasmota/issues/2559
WiFi.setSleepMode(WIFI_LIGHT_SLEEP); // Allow light sleep during idle times
#endif
}
// if (WiFi.getPhyMode() != WIFI_PHY_MODE_11N) {
// WiFi.setPhyMode(WIFI_PHY_MODE_11N);