Thanks to visit codestin.com
Credit goes to github.com

Skip to content

add __del__() to busio.I2C, which now has a finaliser #9706

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 1 commit into from
Oct 10, 2024

Conversation

dhalbert
Copy link
Collaborator

busio.I2C() became a class with a finaliser in #9671, but it also needed __del__() to be defined for the finaliser to work properly.

Tested on a Metro RP2040, a PyPortal, and a Pico 2.

@dhalbert dhalbert requested a review from tannewt October 10, 2024 16:17
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.

Thanks! Good find!

@tannewt tannewt merged commit 0509ed2 into adafruit:main Oct 10, 2024
554 checks passed
@dhalbert dhalbert deleted the i2c-del branch October 15, 2024 17:34
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.

RP2350 does not reset i2c peripheral upon reload
2 participants