8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8d14266 + 251c0f5 commit c8eee68Copy full SHA for c8eee68
ports/nrf/common-hal/pulseio/PWMOut.c
@@ -233,6 +233,9 @@ void common_hal_pulseio_pwmout_deinit(pulseio_pwmout_obj_t* self) {
233
// Disconnect pin from channel.
234
pwm->PSEL.OUT[self->channel] = 0xFFFFFFFF;
235
236
+ reset_pin_number(self->pin_number);
237
+ self->pin_number = NO_PIN;
238
+
239
for(int i=0; i < CHANNELS_PER_PWM; i++) {
240
if (self->pwm->PSEL.OUT[i] != 0xFFFFFFFF) {
241
// Some channel is still being used, so don't disable.
0 commit comments