Merge pull request #2938 from DavePutz/issue2894

Add an increment to tcc_refcount to allow deinit to work correctly
This commit is contained in:
Scott Shawcroft 2020-05-26 14:39:59 -07:00 committed by GitHub
commit ffe0e0edc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]++;
}
}
}