forked from xuos/xiuos
repair the i2c write function for aiit_riscv64_board
This commit is contained in:
parent
5f42111c38
commit
48b454ab70
|
@ -447,7 +447,7 @@ static uint32 I2cWriteData(struct I2cHardwareDevice *i2c_dev, struct I2cDataStan
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (msg->flags & I2C_WR) {
|
if (msg->flags == I2C_WR) {
|
||||||
ret = I2cSendBytes(bus, msg);
|
ret = I2cSendBytes(bus, msg);
|
||||||
if (ret >= 1)
|
if (ret >= 1)
|
||||||
//KPrintf("write %d byte%s", ret, ret == 1 ? "" : "s");
|
//KPrintf("write %d byte%s", ret, ret == 1 ? "" : "s");
|
||||||
|
|
Loading…
Reference in New Issue