mirror of
https://github.com/wled/WLED.git
synced 2025-07-27 04:36:33 +00:00
Fix preset cycle
This commit is contained in:
parent
2c70d66d4a
commit
bd4d1cdd41
@ -98,7 +98,7 @@
|
|||||||
|
|
||||||
|
|
||||||
//version code in format yymmddb (b = daily build)
|
//version code in format yymmddb (b = daily build)
|
||||||
#define VERSION 1912181
|
#define VERSION 1912182
|
||||||
char versionString[] = "0.9.0-b1";
|
char versionString[] = "0.9.0-b1";
|
||||||
|
|
||||||
|
|
||||||
|
@ -88,8 +88,8 @@ bool deserializeState(JsonObject root)
|
|||||||
int ps = root["ps"] | -1;
|
int ps = root["ps"] | -1;
|
||||||
if (ps >= 0) applyPreset(ps);
|
if (ps >= 0) applyPreset(ps);
|
||||||
|
|
||||||
int cy = root["pl"] | -1;
|
int cy = root["pl"] | -2;
|
||||||
presetCyclingEnabled = (cy >= 0);
|
if (cy > -2) presetCyclingEnabled = (cy >= 0);
|
||||||
JsonObject ccnf = root["ccnf"];
|
JsonObject ccnf = root["ccnf"];
|
||||||
presetCycleMin = ccnf["min"] | presetCycleMin;
|
presetCycleMin = ccnf["min"] | presetCycleMin;
|
||||||
presetCycleMax = ccnf["max"] | presetCycleMax;
|
presetCycleMax = ccnf["max"] | presetCycleMax;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user