mirror of https://github.com/m-labs/artiq.git
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 i2c_read(int busno, int ack)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
char b;
|
unsigned char b;
|
||||||
|
|
||||||
/* Set SCL low first, otherwise setting SDA as input may cause a transition
|
/* 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.
|
* on SDA with SCL high which will be interpreted as START/STOP condition.
|
||||||
|
|
Loading…
Reference in New Issue