diff --git a/shade_controller/lightcontrol.h b/shade_controller/lightcontrol.h index 4eec8ec..11d3268 100644 --- a/shade_controller/lightcontrol.h +++ b/shade_controller/lightcontrol.h @@ -26,7 +26,7 @@ void lightControl() { } if (lightMode == 0) { - if (pwmOn == false) { + if (pwmOn == false || pwmBrightness == 0) { pwmBrightnessOut = 0; } if (pwmOn == true && pwmBrightness != pwmBrightnessOut) {