Fix second shared PWM

Fixes #4210
This commit is contained in:
Scott Shawcroft 2021-02-23 17:04:25 -08:00
parent b69cb0144c
commit 1b00d94b23
No known key found for this signature in database
GPG Key ID: 0DFD512649C052DA

View File

@ -143,6 +143,7 @@ pwmout_result_t common_hal_pwmio_pwmout_construct(pwmio_pwmout_obj_t* self,
common_hal_pwmio_pwmout_set_frequency(self, frequency);
pwm_set_enabled(slice, true);
} else {
common_hal_pwmio_pwmout_set_frequency(self, frequency);
common_hal_pwmio_pwmout_set_duty_cycle(self, duty);
}