Skip to content

Commit

Permalink
always use preset glitch workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
softhack007 committed Dec 30, 2024
1 parent 6d0b4c3 commit e65832a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wled00/presets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e65832a

Please sign in to comment.