From 8f2791f90880a2d8bcd257226ab60810ae839058 Mon Sep 17 00:00:00 2001 From: Shawn A Date: Thu, 28 Jun 2018 11:53:48 -0500 Subject: [PATCH] fix esp32 fatal --- WiFiManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/WiFiManager.cpp b/WiFiManager.cpp index 049e695..030178b 100644 --- a/WiFiManager.cpp +++ b/WiFiManager.cpp @@ -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; }