fix esp32 fatal

This commit is contained in:
Shawn A
2018-06-28 11:53:48 -05:00
parent 6d92ae5a1f
commit 8f2791f908
+2
View File
@@ -2314,6 +2314,8 @@ bool WiFiManager::WiFi_Disconnect() {
// esp_wifi_start(); // @todo can only disconnect if enabled perhaps, prevent failure, or correct for previous call ?
return esp_wifi_disconnect() == ESP_OK;
// return WiFi.disconnect();
DEBUG_WM(DEBUG_DEV,F("WIFI station disconnect"));
return WiFi.disconnect(); // not persistent atm
#endif
return false;
}