mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 20:56:35 +00:00
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
|
/* 5.12.0m
|
||||||
* Reinit timers to accomodate random window (#2447)
|
* Reinit timers to accomodate random window (#2447)
|
||||||
* Remove sonoff-xxl
|
* Remove sonoff-xxl
|
||||||
|
* Disable sleep when using Esp/Arduino core 2.4.1 (#2559)
|
||||||
* Add sonoff-classic, sonoff-allsensors and sonoff-knx
|
* Add sonoff-classic, sonoff-allsensors and sonoff-knx
|
||||||
* Add some coloring to important web buttons
|
* Add some coloring to important web buttons
|
||||||
* Add rule variables and teleperiod trigger to accomodate user HA messages
|
* Add rule variables and teleperiod trigger to accomodate user HA messages
|
||||||
|
@ -615,7 +615,9 @@ void WifiBegin(uint8_t flag)
|
|||||||
delay(200);
|
delay(200);
|
||||||
WiFi.mode(WIFI_STA); // Disable AP mode
|
WiFi.mode(WIFI_STA); // Disable AP mode
|
||||||
if (Settings.sleep) {
|
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
|
WiFi.setSleepMode(WIFI_LIGHT_SLEEP); // Allow light sleep during idle times
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
// if (WiFi.getPhyMode() != WIFI_PHY_MODE_11N) {
|
// if (WiFi.getPhyMode() != WIFI_PHY_MODE_11N) {
|
||||||
// WiFi.setPhyMode(WIFI_PHY_MODE_11N);
|
// WiFi.setPhyMode(WIFI_PHY_MODE_11N);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user