Fix preset cycle

This commit is contained in:
cschwinne
2019-12-18 00:47:24 +01:00
parent 2c70d66d4a
commit bd4d1cdd41
2 changed files with 3 additions and 3 deletions

View File

@@ -88,8 +88,8 @@ bool deserializeState(JsonObject root)
int ps = root["ps"] | -1;
if (ps >= 0) applyPreset(ps);
int cy = root["pl"] | -1;
presetCyclingEnabled = (cy >= 0);
int cy = root["pl"] | -2;
if (cy > -2) presetCyclingEnabled = (cy >= 0);
JsonObject ccnf = root["ccnf"];
presetCycleMin = ccnf["min"] | presetCycleMin;
presetCycleMax = ccnf["max"] | presetCycleMax;