Fix compile errors

Missing brackets and semicolons of course. Blame python.
This commit is contained in:
George 2020-05-19 15:44:19 +10:00
parent a305f435e8
commit ce2696fef0
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -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) {