Skip to content

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.

2 participants