i2c: flip the msg flags for mraa_i2c_read_bytes_data
Fixes 168. Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
@@ -207,11 +207,11 @@ mraa_i2c_read_bytes_data(mraa_i2c_context dev, uint8_t command, uint8_t* data, i
|
||||
struct i2c_msg m[2];
|
||||
|
||||
m[0].addr = dev->addr;
|
||||
m[0].flags = I2C_M_RD;
|
||||
m[0].flags = 0x00;
|
||||
m[0].len = 1;
|
||||
m[0].buf = &command;
|
||||
m[1].addr = dev->addr;
|
||||
m[1].flags = 0x00;
|
||||
m[1].flags = I2C_M_RD;
|
||||
m[1].len = length;
|
||||
m[1].buf = data;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user