Skip to content

Commit 84e4a4b

Browse files
committed
Fixed an issue that made it impossible to deactivate timed presets
1 parent 34c9c5a commit 84e4a4b

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
### Development versions after 0.11.0 release
44

5+
#### Build 2012150
6+
7+
- Added Blends FX (PR #1491)
8+
- Fixed an issue that made it impossible to deactivate timed presets
9+
510
#### Build 2012140
611

712
- Added Preset ID quick display option (PR #1462)

wled00/cfg.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,13 @@ void deserializeConfig() {
279279
CJSON(timerMacro[it], timer[F("macro")]);
280280

281281
byte dowPrev = timerWeekday[it];
282-
bool actPrev = timerWeekday[it] & 0x01;
282+
//note: act is currently only 0 or 1.
283+
//the reason we are not using bool is that the on-disk type in 0.11.0 was already int
284+
int actPrev = timerWeekday[it] & 0x01;
283285
CJSON(timerWeekday[it], timer[F("dow")]);
284286
if (timerWeekday[it] != dowPrev) { //present in JSON
285287
timerWeekday[it] <<= 1; //add active bit
286-
bool act = timer[F("en")] | actPrev;
288+
int act = timer[F("en")] | actPrev;
287289
if (act) timerWeekday[it]++;
288290
}
289291

wled00/wled.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99

1010
// version code in format yymmddb (b = daily build)
11-
#define VERSION 2012140
11+
#define VERSION 2012150
1212

1313
//uncomment this if you have a "my_config.h" file you'd like to use
1414
//#define WLED_USE_MY_CONFIG

0 commit comments

Comments
 (0)