Skip to content
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

Make countio object long-lived #6106

Merged
merged 2 commits into from
Mar 2, 2022
Merged

Make countio object long-lived #6106

merged 2 commits into from
Mar 2, 2022

Conversation

DavePutz
Copy link
Collaborator

@DavePutz DavePutz commented Mar 2, 2022

Fixes #5982. Made the countio object long-lived so it persists across imports.

Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

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

Thanks! I have been thinking about how to fix this without dragging implementation details into shared-bindings, but it's a lot more complicated (keep a list of Counter objects, etc.). This is certainly fine.

Suggestion to add a comment to say why it's long-lived.

shared-bindings/countio/Counter.c Show resolved Hide resolved
Add a comment as to why the countio object needs to be long-lived.
@dhalbert
Copy link
Collaborator

dhalbert commented Mar 2, 2022

There is one build error, but I think it is CI-related. The error does not look like the usual network problems, but it only shows up on one build, and there's nothing special about that build, I think.

Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

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

Thanks!

@dhalbert dhalbert merged commit 6af4c77 into adafruit:main Mar 2, 2022
@dhalbert dhalbert added this to the 7.3.0 milestone Mar 2, 2022
@dhalbert
Copy link
Collaborator

dhalbert commented Mar 2, 2022

Consder backporting to 7.2.x

@dhalbert dhalbert modified the milestones: 7.3.0, 7.2.x Mar 2, 2022
@DavePutz DavePutz deleted the issue_5982 branch June 14, 2022 17:11
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.

Countio on M4 Express doesn't work when counter is imported
2 participants