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

@@ -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;
}