mirror of https://github.com/arendst/Tasmota.git
Fix compile errors
Missing brackets and semicolons of course. Blame python.
This commit is contained in:
parent
a305f435e8
commit
ce2696fef0
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue