runtime/i2c_read: fix MSB

This commit is contained in:
Sebastien Bourdeauducq 2016-03-05 19:00:14 +08:00
parent f2b4b975a3
commit 125ab3e076
1 changed files with 1 additions and 1 deletions

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.