fix for erase config when STA disabled

This commit is contained in:
Shawn A
2018-01-27 08:31:17 -06:00
parent a3678c6c22
commit 42cd1aeb8d
+1
View File
@@ -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
}