Skip to content

Commit

Permalink
Remove check for strip
Browse files Browse the repository at this point in the history
  • Loading branch information
blazoncek committed Dec 25, 2023
1 parent f414af4 commit b3a768a
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 @@ -26,7 +26,7 @@ static void doSaveState() {

unsigned long start = millis();
while (strip.isUpdating() && millis()-start < (2*FRAMETIME_FIXED)+1) yield(); // wait 2 frames
if (strip.isUpdating() || !requestJSONBufferLock(10)) return; // will set fileDoc
if (!requestJSONBufferLock(10)) return; // will set fileDoc

initPresetsFile(); // just in case if someone deleted presets.json using /edit
JsonObject sObj = doc.to<JsonObject>();
Expand Down

0 comments on commit b3a768a

Please sign in to comment.