Skip to content

Commit

Permalink
Playlist output glitchfix update: found it also happens on S3 (#4462)
Browse files Browse the repository at this point in the history
* Fix output glitches when playlist changes preset update: glitches also happen on S3
  • Loading branch information
DedeHai committed Jan 12, 2025
1 parent c9b95e2 commit 5fc2175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wled00/presets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ void handlePresets()

DEBUG_PRINTF_P(PSTR("Applying preset: %u\n"), (unsigned)tmpPreset);

#if defined(ARDUINO_ARCH_ESP32S2) || defined(ARDUINO_ARCH_ESP32C3)
#if defined(ARDUINO_ARCH_ESP32S3) || 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
#endif
Expand Down

0 comments on commit 5fc2175

Please # to comment.