From e970686064b357b55322467d7c919fa66e923541 Mon Sep 17 00:00:00 2001 From: Shawn A Date: Mon, 19 Mar 2018 12:47:56 -0500 Subject: [PATCH] fix debug blank --- WiFiManager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/WiFiManager.cpp b/WiFiManager.cpp index 7980c9a..650ebb1 100644 --- a/WiFiManager.cpp +++ b/WiFiManager.cpp @@ -504,9 +504,11 @@ uint8_t WiFiManager::processConfigPortal(){ // attempt sta connection to submitted _ssid, _pass if (connectWifi(_ssid, _pass) == WL_CONNECTED) { + DEBUG_WM(F("Connect to new AP [SUCCESS]")); DEBUG_WM(F("Got IP Address:")); DEBUG_WM(WiFi.localIP()); + if ( _savecallback != NULL) { _savecallback(); } @@ -1952,7 +1954,7 @@ void WiFiManager::DEBUG_WM(Generic text) { template void WiFiManager::DEBUG_WM(wm_debuglevel_t level,Generic text) { - if(_debugLevel >= level) DEBUG_WM(text,""); + if(_debugLevel >= level) DEBUG_WM(DEBUG_NOTIFY,text,""); } template @@ -1970,6 +1972,7 @@ void WiFiManager::DEBUG_WM(wm_debuglevel_t level,Generic text,Genericb textb) { _debugPort.println((String)ESP.getFreeHeap()); } _debugPort.print("*WM: "); + // _debugPort.print("["+(String)level+"] "); _debugPort.print(text); if(textb){ _debugPort.print(" ");