debugger adjustments

This commit is contained in:
tablatronix
2021-02-03 12:34:14 -06:00
parent 0d04a14352
commit ef8e26c87e
2 changed files with 5 additions and 4 deletions
+2 -3
View File
@@ -333,7 +333,6 @@ boolean WiFiManager::autoConnect(char const *apName, char const *apPassword) {
#endif
#endif
}
return true; // connected success
}
@@ -2986,7 +2985,7 @@ void WiFiManager::DEBUG_WM(wm_debuglevel_t level,Generic text,Genericb textb) {
#endif
}
_debugPort.print("*WM: ");
if(_debugLevel == DEBUG_DEV) _debugPort.print("["+(String)level+"] ");
if(_debugLevel >= debugLvlShow) _debugPort.print("["+(String)level+"] ");
_debugPort.print(text);
if(textb){
_debugPort.print(" ");
@@ -3116,7 +3115,7 @@ boolean WiFiManager::validApPassword(){
}
#ifdef WM_DEBUG_LEVEL
DEBUG_WM(DEBUG_VERBOSE,F("AccessPoint set password is VALID"));
DEBUG_WM(_apPassword);
DEBUG_WM(DEBUG_DEV,"ap pass",_apPassword);
#endif
}
return true;
+3 -1
View File
@@ -593,12 +593,14 @@ class WiFiManager
boolean _debug = true;
wm_debuglevel_t debugLvlShow = DEBUG_DEV; // at which level start showing [n] level tags
// build debuglevel support
// @todo use DEBUG_ESP_x?
// Set default debug level
#ifndef WM_DEBUG_LEVEL
#define WM_DEBUG_LEVEL DEBUG_DEV // development default, not release
#define WM_DEBUG_LEVEL DEBUG_MAX // development default, not release
#endif
// override debug level OFF