2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 11:18:27 +08:00

runtime/i2c_read: fix MSB

This commit is contained in:
Sebastien Bourdeauducq 2016-03-05 19:00:14 +08:00
parent f2b4b975a3
commit 125ab3e076

View File

@ -160,7 +160,7 @@ int i2c_write(int busno, int b)
int i2c_read(int busno, int ack)
{
int i;
char b;
unsigned char b;
/* Set SCL low first, otherwise setting SDA as input may cause a transition
* on SDA with SCL high which will be interpreted as START/STOP condition.