Update WiFiAPClient.cpp remove duplicate section

This commit is contained in:
Matt Smith
2025-05-30 10:45:11 -04:00
committed by GitHub
parent 18ec1e8c91
commit 0575bd56c7

View File

@@ -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()
{