Suspend strip during operations

This commit is contained in:
Blaz Kristan
2023-12-22 15:39:07 +01:00
parent 4e105492ca
commit cf3f6ede72
7 changed files with 47 additions and 27 deletions

View File

@@ -846,7 +846,7 @@ void WLED::handleConnection()
DEBUG_PRINT(F("Heap too low! "));
DEBUG_PRINTLN(heap);
forceReconnect = true;
strip.purgeSegments(true); // remove all but one segments from memory
strip.resetSegments();
} else if (heap < MIN_HEAP_SIZE) {
strip.purgeSegments();
}