Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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();
Copy link
Member

@softhack007 softhack007 Feb 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another option would be to create an else branch for if (!realtimeMode ...., and put handlepresets() into the else branch. But I would still prefer this to be guarded by a user-controled settings.

yield();


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