mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-22 10:42:10 +10:00
Fix debug_max
This commit is contained in:
+2
-2
@@ -2711,7 +2711,7 @@ void WiFiManager::setSaveConnect(bool connect) {
|
|||||||
void WiFiManager::setDebugOutput(boolean debug) {
|
void WiFiManager::setDebugOutput(boolean debug) {
|
||||||
_debug = debug;
|
_debug = debug;
|
||||||
if(_debug && _debugLevel == WM_DEBUG_DEV) debugPlatformInfo();
|
if(_debug && _debugLevel == WM_DEBUG_DEV) debugPlatformInfo();
|
||||||
if(_debug && _debugLevel >= WM_DEBUG_NOTIFY) DEBUG_WM((String)WM_VERSION_STR + " L:"+(String)_debugLevel);
|
if(_debug && _debugLevel >= WM_DEBUG_NOTIFY) DEBUG_WM((String)WM_VERSION_STR + " D:"+(String)_debugLevel);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WiFiManager::setDebugOutput(boolean debug, String prefix) {
|
void WiFiManager::setDebugOutput(boolean debug, String prefix) {
|
||||||
@@ -3326,7 +3326,7 @@ template <typename Generic, typename Genericb>
|
|||||||
void WiFiManager::DEBUG_WM(wm_debuglevel_t level,Generic text,Genericb textb) {
|
void WiFiManager::DEBUG_WM(wm_debuglevel_t level,Generic text,Genericb textb) {
|
||||||
if(!_debug || _debugLevel < level) return;
|
if(!_debug || _debugLevel < level) return;
|
||||||
|
|
||||||
if(_debugLevel > WM_DEBUG_MAX){
|
if(_debugLevel >= WM_DEBUG_MAX){
|
||||||
#ifdef ESP8266
|
#ifdef ESP8266
|
||||||
// uint32_t free;
|
// uint32_t free;
|
||||||
// uint16_t max;
|
// uint16_t max;
|
||||||
|
|||||||
Reference in New Issue
Block a user