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

correct clock stretch timeout for board.I2C() #4390

Merged
merged 1 commit into from
Mar 12, 2021

Conversation

dhalbert
Copy link
Collaborator

@dhalbert dhalbert commented Mar 12, 2021

Fixes #4372.

The clock stretch timeout for board.I2C() was given as zero, but the default is 255. This timeout is only used by bitbangio.I2C(), and didn't matter up to now for other ports. But the RP2040 port uses bitbangio for zero-byte writes, so it used the zero clock stretch timeout.

Anyone can review. This is simple. Tested.

Copy link
Collaborator

@makermelissa makermelissa left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@dhalbert dhalbert merged commit 8d3217c into adafruit:main Mar 12, 2021
@dhalbert dhalbert deleted the board-i2c-clock-stretch branch March 12, 2021 03:26
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.

RP2040 Feather Clock Stretch too long error with I2C Singleton
2 participants