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.
1 parent dbab538 commit 251c0f5Copy full SHA for 251c0f5
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