8000 modbluetooth/hci: Create Uart object on heap to ensure gc tracks it correctly. by andrewleech · Pull Request #6299 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content
8000

modbluetooth/hci: Create Uart object on heap to ensure gc tracks it correctly. #6299

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

Closed
wants to merge 1 commit into from

Conversation

andrewleech
Copy link
Contributor

With the existing bluetooth / hci uart configuration where the uart is created in a static struct, the irq python function is left as a dangling object which the gc happily cleans up later. This means eventually further into the application, the uart.irq object is replaced with something quite different.

@andrewleech
Copy link
Contributor Author

This issue was resolved in a better way in #6343

@dpgeorge dpgeorge added the extmod Relates to extmod/ directory in source label Aug 26, 2020
tannewt pushed a commit to tannewt/circuitpython that referenced this pull request May 12, 2022
Fix signature of random.randrange() to show multiple signatures in stub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extmod Relates to extmod/ directory in source
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0