kopia lustrzana https://github.com/Aircoookie/WLED
Fix preset cycle
rodzic
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;
|
||||
|
|
Ładowanie…
Reference in New Issue