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

Fix Twim hangs on address NACK #166

Merged
merged 1 commit into from
Jul 10, 2020
Merged

Conversation

kalkyl
Copy link
Contributor

@kalkyl kalkyl commented Jun 30, 2020

Twim would hang if writing or reading if no slave ACKs the address (ie slave is missing or sleeping).
This PR adds a check in the lasttx/lastrx wait loops to exit if an address NACK is received and return an AddressNack error.
Tested and verified to be working on nRF52840-DK

@jonas-schievink jonas-schievink merged commit 3291f6e into nrf-rs:master Jul 10, 2020
@kalkyl kalkyl deleted the twim_anack branch September 4, 2020 13:40
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