forked from M-Labs/artiq
runtime/i2c_read: fix MSB
This commit is contained in:
parent
f2b4b975a3
commit
125ab3e076
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user