Skip to content

Commit ffe0e0e

Browse files
authored
Merge pull request #2938 from DavePutz/issue2894
Add an increment to tcc_refcount to allow deinit to work correctly
2 parents f3e1c8f + 2e05f62 commit ffe0e0e

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)