Skip to content

Conversation

HanzHager
Copy link

Adding timeout handling for I2C in Wire according to previously defined solution on other platforms
Also reduced the default timeout from 1000ms till 25ms
Also created src directory as well as adding keywords.txt and library.properties so that the "Wire" part of the repository can be handled as a separate library

@CLAassistant
Copy link

CLAassistant commented Oct 8, 2025

CLA assistant check
All committers have signed the CLA.

@HanzHager
Copy link
Author

This should solve the issue #492

@HanzHager
Copy link
Author

The actions to reset the hardware in handleTimeout() is not well tested. It would be great if someone who knows better can take a look at it to see if it makes sense and if there should be changes.

@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Oct 8, 2025
The new logic for the timeout loop in read_from() and write_to() had a bug. It is now fixed.
Adding timeout handling for I2C in Wire according to previously defined solution on other platforms
Also reduced the default timeout from 1000ms to 25ms
@HanzHager
Copy link
Author

Fixed a bug in timeout handling in read_from() and write_to() and made the commit cleaner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

I2C scan takes extremely long (~126 seconds) with Wire.endTransmission() on empty bus
3 participants