mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-03-28 10:12:09 +08:00
The subaddresssize should be 0
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user