mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-16 16:01:36 +10:00
fix for erase config when STA disabled
This commit is contained in:
@@ -1569,6 +1569,7 @@ bool WiFiManager::WiFi_eraseConfig(void) {
|
||||
// }
|
||||
// return true;
|
||||
#elif defined(ESP32)
|
||||
WiFi.mode(WIFI_AP_STA); // cannot erase if not in STA mode
|
||||
return WiFi.disconnect(true);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user