Merge remote-tracking branch 'origin/ac_main' into mdev
This commit is contained in:
@@ -456,6 +456,7 @@ bool deserializeState(JsonObject root, byte callMode, byte presetId)
|
||||
// if preset contains HTTP API call do not change presetCycCurr
|
||||
if (root["win"].isNull()) presetCycCurr = currentPreset;
|
||||
stateChanged = false; // cancel state change update (preset was set directly by applying values stored in UI JSON array)
|
||||
notify(callMode);
|
||||
} else if (root["win"].isNull() && getVal(root["ps"], &ps, 0, 0) && ps > 0 && ps < 251 && ps != currentPreset) {
|
||||
// b) preset ID only or preset that does not change state (use embedded cycling limits if they exist in getVal())
|
||||
presetCycCurr = ps;
|
||||
@@ -463,7 +464,7 @@ bool deserializeState(JsonObject root, byte callMode, byte presetId)
|
||||
root.remove("v"); // may be added in UI call
|
||||
root.remove("time"); // may be added in UI call
|
||||
root.remove("ps");
|
||||
root.remove("on"); // some exetrnal calls add "on" to "ps" call
|
||||
root.remove("on"); // some external calls add "on" to "ps" call
|
||||
if (root.size() == 0) {
|
||||
unloadPlaylist(); // we need to unload playlist
|
||||
applyPreset(ps, callMode); // async load (only preset ID was specified)
|
||||
|
||||
Reference in New Issue
Block a user