repair the i2c write function for aiit_riscv64_board

This commit is contained in:
Wang_Weigen 2022-09-06 10:10:59 +08:00
parent 5f42111c38
commit 48b454ab70
1 changed files with 1 additions and 1 deletions

View File

@ -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");