Boot brightness 0 will now use the brightness from preset

Add iOS scrolling momentum (from PR #1528)
This commit is contained in:
cschwinne 2020-12-20 18:51:46 +01:00
parent 5d6b97a63e
commit 79e767ba79
6 changed files with 1724 additions and 1715 deletions

View File

@ -1,5 +1,12 @@
## WLED changelog
### Development versions after 0.11.1 release
#### Build 2012180
- Boot brightness 0 will now use the brightness from preset
- Add iOS scrolling momentum (from PR #1528)
### WLED release 0.11.1
#### Build 2012180

View File

@ -154,7 +154,6 @@ void deserializeConfig() {
CJSON(bootPreset, def[F("ps")]);
CJSON(turnOnAtBoot, def["on"]); // true
CJSON(briS, def["bri"]); // 128
if (briS == 0) briS = 255;
JsonObject def_cy = def[F("cy")];
CJSON(presetCyclingEnabled, def_cy["on"]);

View File

@ -274,6 +274,7 @@ button {
padding-top: 0;
margin-top: 11px;
height: calc(100% - 11px);
-webkit-overflow-scrolling: touch;
}
.smooth { transition: transform calc(var(--f, 1)*.5s) ease-out }

File diff suppressed because it is too large Load Diff

View File

@ -324,7 +324,8 @@ void WLED::beginStrip()
if (bootPreset > 0) applyPreset(bootPreset);
if (turnOnAtBoot) {
bri = (briS > 0) ? briS : 128;
if (briS > 0) bri = briS;
else if (bri == 0) bri = 128;
} else {
briLast = briS; bri = 0;
}

View File

@ -8,7 +8,7 @@
*/
// version code in format yymmddb (b = daily build)
#define VERSION 2012180
#define VERSION 2012190
//uncomment this if you have a "my_config.h" file you'd like to use
//#define WLED_USE_MY_CONFIG