Skip to content

Commit 6daf7f6

Browse files
Update wled.cpp
reworked based on PR feedback
1 parent 16086c0 commit 6daf7f6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

wled00/wled.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,12 @@ void WLED::loop()
209209

210210
toki.resetTick();
211211

212+
// Advance to next playlist preset if the flag is set to true
213+
if (doAdvancePlaylist) {
214+
handlePlaylist(true);
215+
doAdvancePlaylist = false; // Reset flag to false
216+
}
217+
212218
#if WLED_WATCHDOG_TIMEOUT > 0
213219
// we finished our mainloop, reset the watchdog timer
214220
static unsigned long lastWDTFeed = 0;

0 commit comments

Comments
 (0)