Skip to content

Commit

Permalink
Fix second shared PWM
Browse files Browse the repository at this point in the history
Fixes #4210
  • Loading branch information
tannewt committed Feb 24, 2021
1 parent e41137c commit 7d6db34
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ports/raspberrypi/common-hal/pwmio/PWMOut.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 7d6db34

Please sign in to comment.