Skip to content

Add an increment to tcc_refcount to allow deinit to work correctly #2938

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 26, 2020
Merged

Add an increment to tcc_refcount to allow deinit to work correctly #2938

merged 4 commits into from
May 26, 2020

Conversation

DavePutz
Copy link
Collaborator

Issue#2894. When adding to a previously allocated tcc channel the tcc_refcount was not being incremented. This led to a deinit of the PWMOut not releasing properly, and so eventually running out of timers.

@tannewt
Copy link
Member

tannewt commented May 21, 2020

Thanks for looking into this @DavePutz ! Could further explain the cause of this? If we didn't increment enough, I'd expect it to release too early but not cause us to run out of timers. Thanks!

@DavePutz
Copy link
Collaborator Author

DavePutz commented May 21, 2020 via email

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah! Ok. Thanks!

@tannewt tannewt merged commit ffe0e0e into adafruit:master May 26, 2020
@DavePutz DavePutz deleted the issue2894 branch May 30, 2020 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants