From 5a663db42ed3e95bfa7cfb631030a54e99fa92aa Mon Sep 17 00:00:00 2001 From: tablatronix <807787+tablatronix@users.noreply.github.com> Date: Mon, 9 Oct 2023 22:22:02 -0500 Subject: [PATCH] Fix debug_max --- WiFiManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WiFiManager.cpp b/WiFiManager.cpp index d0b180834..d0f3be20a 100644 --- a/WiFiManager.cpp +++ b/WiFiManager.cpp @@ -2711,7 +2711,7 @@ void WiFiManager::setSaveConnect(bool connect) { void WiFiManager::setDebugOutput(boolean debug) { _debug = debug; 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) { @@ -3326,7 +3326,7 @@ template void WiFiManager::DEBUG_WM(wm_debuglevel_t level,Generic text,Genericb textb) { if(!_debug || _debugLevel < level) return; - if(_debugLevel > WM_DEBUG_MAX){ + if(_debugLevel >= WM_DEBUG_MAX){ #ifdef ESP8266 // uint32_t free; // uint16_t max;