diff --git a/tasmota/support_command.ino b/tasmota/support_command.ino index 5adcc708f..b48723575 100644 --- a/tasmota/support_command.ino +++ b/tasmota/support_command.ino @@ -1893,7 +1893,7 @@ void CmndDriver(void) void CmndSetLedPwmOff(void) { - if ((XdrvMailbox.payload < 0) { + if (XdrvMailbox.payload < 0) { Settings.ledpwm_off = 0; } else if (XdrvMailbox.payload > Settings.pwm_range) { Settings.ledpwm_off = Settings.pwm_range; @@ -1905,7 +1905,7 @@ void CmndSetLedPwmOff(void) void CmndSetLedPwmOn(void) { - if ((XdrvMailbox.payload < 0) { + if (XdrvMailbox.payload < 0) { Settings.ledpwm_on = 0; } else if (XdrvMailbox.payload > Settings.pwm_range) { Settings.ledpwm_on = Settings.pwm_range; @@ -1913,4 +1913,4 @@ void CmndSetLedPwmOn(void) Settings.ledpwm_on = XdrvMailbox.payload; } ResponseCmndNumber(Settings.ledpwm_on); -} \ No newline at end of file +} diff --git a/tasmota/support_tasmota.ino b/tasmota/support_tasmota.ino index 65d842686..2508566ea 100644 --- a/tasmota/support_tasmota.ino +++ b/tasmota/support_tasmota.ino @@ -357,7 +357,7 @@ void SetLedPowerIdx(uint32_t led, uint32_t state) } else { led_pwm_set = state ? Settings.ledpwm_on : Settings.ledpwm_off; } - analogWrite(led, led_pwm_set) + analogWrite(led, led_pwm_set); } #ifdef USE_BUZZER if (led == 0) {