mirror of https://github.com/arendst/Tasmota.git
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:
parent
4675dbea1c
commit
e1011d3cdd
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue