mirror of
https://github.com/meshtastic/firmware.git
synced 2025-10-07 07:10:14 +00:00
Update WiFiAPClient.cpp remove duplicate section
This commit is contained in:
parent
18ec1e8c91
commit
0575bd56c7
@ -223,21 +223,6 @@ static int32_t reconnectWiFi()
|
|||||||
}
|
}
|
||||||
#endif
|
#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()
|
bool isWifiAvailable()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user