Merge pull request #3139 from liweihao-cn/master

The subaddresssize should be 0
This commit is contained in:
Bernard Xiong 2019-10-28 16:18:10 +08:00 committed by GitHub
commit 381f176859
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ static rt_size_t master_xfer(struct rt_i2c_bus_device *bus, struct rt_i2c_msg ms
xfer.slaveAddress = msg->addr;
xfer.flags = kI2C_TransferDefaultFlag;
xfer.subaddress = 0;
xfer.subaddressSize = 1;
xfer.subaddressSize = 0;
xfer.data = msg->buf;
xfer.dataSize = msg->len;