mirror of
https://github.com/wled/WLED.git
synced 2025-07-12 21:36:32 +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();
|
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")];
|
JsonObject wifi = root[F("wifi")];
|
||||||
if (!wifi.isNull()) {
|
if (!wifi.isNull()) {
|
||||||
bool apMode = getBoolVal(wifi[F("ap")], apActive);
|
bool apMode = getBoolVal(wifi[F("ap")], apActive);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user