workaround for #1482

This commit is contained in:
tablatronix
2022-09-12 16:06:23 -05:00
parent 6fb63f834a
commit 1b5d71bac7
+2 -1
View File
@@ -717,6 +717,7 @@ boolean WiFiManager::startConfigPortal(char const *apName, char const *apPasswo
// HANDLE issues with STA connections, shutdown sta if not connected, or else this will hang channel scanning and softap will not respond
if(_disableSTA || (!WiFi.isConnected() && _disableSTAConn)){
// this fixes most ap problems, however, simply doing mode(WIFI_AP) does not work if sta connection is hanging, must `wifi_station_disconnect`
WiFi.mode(WIFI_AP_STA);
WiFi_Disconnect();
WiFi_enableSTA(false);
#ifdef WM_DEBUG_LEVEL
@@ -724,7 +725,7 @@ boolean WiFiManager::startConfigPortal(char const *apName, char const *apPasswo
#endif
}
else {
WiFi_enableSTA(true);
// WiFi_enableSTA(true);
}
// init configportal globals to known states