Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds an API parameter to allow the user to skip to the next preset in a playlist at any time #3946

Merged
merged 15 commits into from
May 3, 2024
4 changes: 1 addition & 3 deletions wled00/json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,9 +487,7 @@ bool deserializeState(JsonObject root, byte callMode, byte presetId)
}
}

if (root.containsKey(F("np"))) {
doAdvancePlaylist = root[F("np")].as<bool>(); //advances to next preset in playlist when true
}
doAdvancePlaylist = root["np"].as<bool>() || doAdvancePlaylist; //advances to next preset in playlist when true
freakintoddles2 marked this conversation as resolved.
Show resolved Hide resolved

JsonObject wifi = root[F("wifi")];
if (!wifi.isNull()) {
Expand Down