Merge pull request #7713 from ascillato/patch-1

Fix Deep-Sleep-Wake timming
This commit is contained in:
Theo Arends 2020-02-10 21:33:10 +01:00 committed by GitHub
commit 9814468b32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -189,7 +189,13 @@ void WifiBegin(uint8_t flag, uint8_t channel)
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
// This needs to be explicitly called as "false" otherwise the default is enabled
WiFi.setAutoReconnect(false);
#ifdef USE_DEEPSLEEP
if (!(DeepSleepEnabled())) { // #7621
#endif
WiFi.setAutoReconnect(false);
#ifdef USE_DEEPSLEEP
}
#endif
switch (flag) {
case 0: // AP1
case 1: // AP2