Update wled.cpp

reworked based on PR feedback
This commit is contained in:
freakintoddles2 2024-05-01 10:07:52 -07:00 committed by GitHub
parent 16086c0961
commit 6daf7f6322
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -209,6 +209,12 @@ void WLED::loop()
toki.resetTick();
// Advance to next playlist preset if the flag is set to true
if (doAdvancePlaylist) {
handlePlaylist(true);
doAdvancePlaylist = false; // Reset flag to false
}
#if WLED_WATCHDOG_TIMEOUT > 0
// we finished our mainloop, reset the watchdog timer
static unsigned long lastWDTFeed = 0;