Skip to content

Commit 2e05f62

Browse files
authored
Add an increment to tcc_refcount to allow deinits to work properly
1 parent 1f40f9e commit 2e05f62

File tree

1 file changed

+1
-1
lines changed
  • ports/atmel-samd/common-hal/pulseio

1 file changed

+1
-1
lines changed

ports/atmel-samd/common-hal/pulseio/PWMOut.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ pwmout_result_t common_hal_pulseio_pwmout_construct(pulseio_pwmout_obj_t* self,
181181
mux_position = j;
182182
// Claim channel.
183183
tcc_channels[timer->index] |= (1 << tcc_channel(timer));
184-
184+
tcc_refcount[timer->index]++;
185185
}
186186
}
187187
}

0 commit comments

Comments
 (0)