From 0575bd56c7107d79d1ab1716287921cc2c254a23 Mon Sep 17 00:00:00 2001 From: Matt Smith Date: Fri, 30 May 2025 10:45:11 -0400 Subject: [PATCH] Update WiFiAPClient.cpp remove duplicate section --- src/mesh/wifi/WiFiAPClient.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/mesh/wifi/WiFiAPClient.cpp b/src/mesh/wifi/WiFiAPClient.cpp index f7bab7ece..74c233fc5 100644 --- a/src/mesh/wifi/WiFiAPClient.cpp +++ b/src/mesh/wifi/WiFiAPClient.cpp @@ -223,21 +223,6 @@ static int32_t reconnectWiFi() } #endif - if (config.network.wifi_enabled && !WiFi.isConnected()) { -#ifdef ARCH_RP2040 // (ESP32 handles this in WiFiEvent) - /* If APStartupComplete, but we're not connected, try again. - Shouldn't try again before APStartupComplete. */ - needReconnect = APStartupComplete; -#endif - return 1000; // check once per second - } else { -#ifdef ARCH_RP2040 - onNetworkConnected(); // will only do anything once -#endif - return 300000; // every 5 minutes - } -} - bool isWifiAvailable() {