Skip to content

Commit 1b00d94

Browse files
committed
Fix second shared PWM
Fixes #4210
1 parent b69cb01 commit 1b00d94

File tree

1 file changed

+1
-0
lines changed
  • ports/raspberrypi/common-hal/pwmio

1 file changed

+1
-0
lines changed

ports/raspberrypi/common-hal/pwmio/PWMOut.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ pwmout_result_t common_hal_pwmio_pwmout_construct(pwmio_pwmout_obj_t* self,
143143
common_hal_pwmio_pwmout_set_frequency(self, frequency);
144144
pwm_set_enabled(slice, true);
145145
} else {
146+
common_hal_pwmio_pwmout_set_frequency(self, frequency);
146147
common_hal_pwmio_pwmout_set_duty_cycle(self, duty);
147148
}
148149

0 commit comments

Comments
 (0)