Skip to content

Catch Ctrl-C and unlock I2C bus before exiting #1205

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 7 commits into from
Aug 17, 2020
Merged

Conversation

hjw
Copy link
Contributor

@hjw hjw commented Aug 13, 2020

Put while true loop inside a try block in order to catch ctrl-c and unlock the bus before exiting... prevents i2c bus being left in locked state. Also added comment on how to unlock the bus from the REPL.

@ladyada ladyada requested a review from kattni August 13, 2020 14:11
Copy link
Contributor

@kattni kattni left a comment

Choose a reason for hiding this comment

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

Thank you for submitting this! I have a couple of changes requested below.

@ladyada ladyada merged commit 92119d5 into adafruit:master Aug 17, 2020
@ladyada
Copy link
Member

ladyada commented Aug 17, 2020

merged, thanks @hjw !

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.

3 participants