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

Update Wire.cpp #483

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

ElectronicsSam
Copy link

Bugfix, when slave NACK received, next transmission would freeze system due to transmit buffer not empty from previous transmission.

This can happen when a slave disappears from the bus. In my example the SCL would stay low and my clicker 2 board would freeze completely due to while loop in beginTransmission that blocks until transmit buffer is empty.
Wire freeze when slave disappears
Wire one packet before

Bugfix, when slave NACK received, next transmission would freeze system due to transmit buffer not empty from previous transmission.
@JacobChrist
Copy link
Member

I think I have personally experienced this. What device are you taking to and what board are you using? Fubarino Mini 2.0 and PONTECH Quick 240's are easy boards for me to test with.

Without digging deeper the change look innocuous none the less.

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.

None yet

2 participants