From e65832ab7084d431481e02c14857851ec13159fd Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Mon, 30 Dec 2024 22:52:27 +0100 Subject: [PATCH] always use preset glitch workaround --- wled00/presets.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wled00/presets.cpp b/wled00/presets.cpp index a2d9e48b..60a7e1c6 100644 --- a/wled00/presets.cpp +++ b/wled00/presets.cpp @@ -233,9 +233,10 @@ void handlePresets() DEBUG_PRINT(F("Applying preset: ")); DEBUG_PRINTLN(tmpPreset); - #if defined(ARDUINO_ARCH_ESP32S2) || defined(ARDUINO_ARCH_ESP32C3) + #if defined(ARDUINO_ARCH_ESP32) // WLEDMM we apply this workaround to all esp32 boards (S3 and classic esp32 included) + //#if defined(ARDUINO_ARCH_ESP32S2) || defined(ARDUINO_ARCH_ESP32C3) unsigned long start = millis(); - while (strip.isUpdating() && millis() - start < FRAMETIME_FIXED) yield(); // wait for strip to finish updating, accessing FS during sendout causes glitches + while (strip.isUpdating() && millis() - start < FRAMETIME_FIXED) delay(1); // wait for strip to finish updating, accessing FS during sendout causes glitches // WLEDMM delay instead of yield #endif #ifdef ARDUINO_ARCH_ESP32