Skip to content

Commit

Permalink
Fix debug_max
Browse files Browse the repository at this point in the history
  • Loading branch information
tablatronix committed Oct 10, 2023
1 parent ba3f198 commit 5a663db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WiFiManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -3326,7 +3326,7 @@ template <typename Generic, typename Genericb>
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;
Expand Down

0 comments on commit 5a663db

Please sign in to comment.