diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2020-05-26 14:39:59 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-26 14:39:59 -0700 |
| commit | ffe0e0edc371cad05ee6cc1bc8cd7b7a77bd2145 (patch) | |
| tree | 2f14467e8c986d9c91d63a30bf9636f41cd0c07b | |
| parent | f3e1c8fd36bb1a583af3ae1f5508aac84900008e (diff) | |
| parent | 2e05f628f0ce09bcd411fab8406b4675c40a0dab (diff) | |
Merge pull request #2938 from DavePutz/issue2894
Add an increment to tcc_refcount to allow deinit to work correctly
| -rw-r--r-- | ports/atmel-samd/common-hal/pulseio/PWMOut.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/atmel-samd/common-hal/pulseio/PWMOut.c b/ports/atmel-samd/common-hal/pulseio/PWMOut.c index 1da0da844..b627dadc5 100644 --- a/ports/atmel-samd/common-hal/pulseio/PWMOut.c +++ b/ports/atmel-samd/common-hal/pulseio/PWMOut.c @@ -181,7 +181,7 @@ pwmout_result_t common_hal_pulseio_pwmout_construct(pulseio_pwmout_obj_t* self, mux_position = j; // Claim channel. tcc_channels[timer->index] |= (1 << tcc_channel(timer)); - + tcc_refcount[timer->index]++; } } } |
