mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-04 02:48:13 +10:00
debugger adjustments
This commit is contained in:
+2
-3
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user