hide "slow strip" when compiling with HEAP_DEBUG

This commit is contained in:
Frank
2023-06-07 12:25:41 +02:00
parent b6f1a591ee
commit e6334d8e3d
2 changed files with 3 additions and 1 deletions

View File

@@ -193,7 +193,9 @@ void WLED::loop()
#endif
#ifdef WLED_DEBUG
stripMillis = millis() - stripMillis;
#ifndef WLED_DEBUG_HEAP // WLEDMM heap debug messages take some time - this warning is popping in too often
if (stripMillis > 50) DEBUG_PRINTLN("Slow strip.");
#endif
avgStripMillis += stripMillis;
if (stripMillis > maxStripMillis) maxStripMillis = stripMillis;
#endif