Update json.cpp

adds support for np boolean parameter to skip to next preset
This commit is contained in:
freakintoddles2 2024-04-30 16:49:52 -07:00 committed by GitHub
parent 3b89814b69
commit a1d6ffadad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);