mirror of https://github.com/arendst/Tasmota.git
Fix Deep-Sleep-Wake timming
https://github.com/arendst/Tasmota/issues/7621
This commit is contained in:
parent
7339b56279
commit
a904da2a2e
|
@ -189,7 +189,13 @@ void WifiBegin(uint8_t flag, uint8_t channel)
|
||||||
if (!WiFi.getAutoConnect()) { WiFi.setAutoConnect(true); }
|
if (!WiFi.getAutoConnect()) { WiFi.setAutoConnect(true); }
|
||||||
// Handle the reconnection in WifiCheckIp() since the autoreconnect keeps sending deauthentication messages which causes the AP to block traffic as it looks like an DoS attack
|
// Handle the reconnection in WifiCheckIp() since the autoreconnect keeps sending deauthentication messages which causes the AP to block traffic as it looks like an DoS attack
|
||||||
// This needs to be explicitly called as "false" otherwise the default is enabled
|
// This needs to be explicitly called as "false" otherwise the default is enabled
|
||||||
|
#ifdef USE_DEEPSLEEP
|
||||||
|
if (!(DeepSleepEnabled())) { // #7621
|
||||||
|
#endif
|
||||||
WiFi.setAutoReconnect(false);
|
WiFi.setAutoReconnect(false);
|
||||||
|
#ifdef USE_DEEPSLEEP
|
||||||
|
}
|
||||||
|
#endif
|
||||||
switch (flag) {
|
switch (flag) {
|
||||||
case 0: // AP1
|
case 0: // AP1
|
||||||
case 1: // AP2
|
case 1: // AP2
|
||||||
|
|
Loading…
Reference in New Issue