Skip to content

Commit afb5301

Browse files
Fix to Issue #7224 - tested
1 parent ddc56f5 commit afb5301

File tree

1 file changed

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

1 file changed

+0
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -236,14 +236,6 @@ extern void common_hal_pwmio_pwmout_set_duty_cycle(pwmio_pwmout_obj_t *self, uin
236236
}
237237
// compare_count is the CC register value, which should be TOP+1 for 100% duty cycle.
238238
pwm_set_chan_level(self->slice, self->ab_channel, compare_count);
239-
// Wait for wrap so that we know our new cc value has been applied. Clear
240-
// the internal interrupt and then wait for it to be set. Worst case, we
241-
// wait a full cycle.
242-
pwm_hw->intr = 1 << self->slice;
243-
while ((pwm_hw->en & (1 << self->slice)) != 0 &&
244-
(pwm_hw->intr & (1 << self->slice)) == 0 &&
245-
!mp_hal_is_interrupted()) {
246-
}
247239
}
248240

249241
uint16_t common_hal_pwmio_pwmout_get_duty_cycle(pwmio_pwmout_obj_t *self) {

0 commit comments

Comments
 (0)