Skip to content

Commit

Permalink
Update json.cpp
Browse files Browse the repository at this point in the history
adds support for np boolean parameter to skip to next preset
  • Loading branch information
freakintoddles2 committed Apr 30, 2024
1 parent 3b89814 commit a1d6ffa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wled00/json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,11 @@ bool deserializeState(JsonObject root, byte callMode, byte presetId)
strip.loadCustomPalettes();
}
}


if (root.containsKey(F("np")) && root[F("np")].as<bool>()) { //skip to next preset in a playlist
handlePlaylist(true);
}

JsonObject wifi = root[F("wifi")];
if (!wifi.isNull()) {
bool apMode = getBoolVal(wifi[F("ap")], apActive);
Expand Down

0 comments on commit a1d6ffa

Please sign in to comment.