mirror of
https://github.com/wled/WLED.git
synced 2025-07-23 18:56:41 +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)
|
||||
#define VERSION 1912181
|
||||
#define VERSION 1912182
|
||||
char versionString[] = "0.9.0-b1";
|
||||
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user