mirror of
https://github.com/wled/WLED.git
synced 2025-04-24 06:47:18 +00:00
Update json.cpp
adds support for np boolean parameter to skip to next preset
This commit is contained in:
parent
3b89814b69
commit
a1d6ffadad
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user