Skip to content
Snippets Groups Projects
Commit 423c7c84 authored by fteso's avatar fteso Committed by Federico
Browse files

Found undefined behavior in functions static unsigned char recvWithAck() and...

Found undefined behavior in functions static unsigned char recvWithAck() and static unsigned char recvWithNack(). In some cases the MSB bit of the incoming byte was read 0 instead 1 because the sampling of the SDA line was made too early. Solved adding delayUs()
parent 7c2ddc72
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment