From bd4d1cdd41fc4a0c376b2c44456b4bae3147bfa7 Mon Sep 17 00:00:00 2001 From: cschwinne Date: Wed, 18 Dec 2019 00:47:24 +0100 Subject: [PATCH] Fix preset cycle --- wled00/wled00.ino | 2 +- wled00/wled19_json.ino | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wled00/wled00.ino b/wled00/wled00.ino index 237dd80dc..9979c81aa 100644 --- a/wled00/wled00.ino +++ b/wled00/wled00.ino @@ -98,7 +98,7 @@ //version code in format yymmddb (b = daily build) -#define VERSION 1912181 +#define VERSION 1912182 char versionString[] = "0.9.0-b1"; diff --git a/wled00/wled19_json.ino b/wled00/wled19_json.ino index 1c5e19eb4..3e135d406 100644 --- a/wled00/wled19_json.ino +++ b/wled00/wled19_json.ino @@ -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;