From 5749ec695adc5bc460c8d325d8b243966e3e7f5a Mon Sep 17 00:00:00 2001 From: Rene Date: Sat, 23 Dec 2023 19:55:35 +0100 Subject: [PATCH] removed delay for faster connection --- WiFiManager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/WiFiManager.cpp b/WiFiManager.cpp index efeb83e5..bbc4b814 100644 --- a/WiFiManager.cpp +++ b/WiFiManager.cpp @@ -1130,8 +1130,7 @@ bool WiFiManager::wifiConnectDefault(){ DEBUG_WM(WM_DEBUG_DEV,F("Using Password:"),WiFi_psk(true)); #endif - ret = WiFi_enableSTA(true,storeSTAmode); - delay(500); // THIS DELAY ? + ret = WiFi.mode(WIFI_STA); #ifdef WM_DEBUG_LEVEL DEBUG_WM(WM_DEBUG_DEV,F("Mode after delay: "),getModeString(WiFi.getMode()));