From cb5dbd403025598dc13ccd16ea2412b9bc8bf77d Mon Sep 17 00:00:00 2001 From: biologist79 <57354741+biologist79@users.noreply.github.com> Date: Mon, 17 May 2021 09:16:31 +0200 Subject: [PATCH] Extended wifi-timeout --- src/Wlan.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Wlan.cpp b/src/Wlan.cpp index 80c5142..223b294 100644 --- a/src/Wlan.cpp +++ b/src/Wlan.cpp @@ -73,7 +73,7 @@ void Wlan_Cyclic(void) { WiFi.begin(_ssid, _pwd); uint8_t tryCount = 0; - while (WiFi.status() != WL_CONNECTED && tryCount <= 4) { + while (WiFi.status() != WL_CONNECTED && tryCount <= 12) { delay(500); Serial.print(F(".")); tryCount++; @@ -166,4 +166,4 @@ void writeWifiStatusToNVS(bool wifiStatus) { bool Wlan_IsConnected(void) { return (WiFi.status() == WL_CONNECTED); -} \ No newline at end of file +}