Skip to content
17 changes: 9 additions & 8 deletions wled00/wled.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,14 @@ void WLED::loop()
#ifdef WLED_DEBUG
stripMillis = millis();
#endif

if (!presetNeedsSaving()) {
handlePlaylist();
yield();
}
handlePresets();
yield();

if (!realtimeMode || realtimeOverride || (realtimeMode && useMainSegmentOnly)) // block stuff if WARLS/Adalight is enabled
{
if (apActive) dnsServer.processNextRequest();
Expand All @@ -119,14 +127,7 @@ void WLED::loop()
handleHue();
yield();
#endif

if (!presetNeedsSaving()) {
handlePlaylist();
yield();
}
handlePresets();
Comment thread
softhack007 marked this conversation as resolved.
yield();


if (!offMode || strip.isOffRefreshRequired() || strip.needsUpdate())
strip.service();
#ifdef ESP8266
Expand Down