Fix the repeated configuration of PWM rate after initialization

This commit is contained in:
CUAVcaijie 2021-04-20 17:14:58 +08:00 committed by Lorenz Meier
parent b2d73dca26
commit b898aabfed
1 changed files with 0 additions and 1 deletions

View File

@ -563,7 +563,6 @@ void PWMOut::update_pwm_out_state(bool on)
// Set rate is not affecting non-masked channels, so can be called
// individually
set_pwm_rate(pwm_alt_rate_channels_new, default_rate_min, alt_rate_max);
_pwm_initialized = true;
}