Fix light not turnng of when slider set to 0 (hopefully)

This commit is contained in:
mrcory
2020-02-14 14:45:58 -05:00
parent 98fbeb4fae
commit 0fc1cf7bef
+1 -1
View File
@@ -26,7 +26,7 @@ void lightControl() {
}
if (lightMode == 0) {
if (pwmOn == false) {
if (pwmOn == false || pwmBrightness == 0) {
pwmBrightnessOut = 0;
}
if (pwmOn == true && pwmBrightness != pwmBrightnessOut) {