diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/system/i2c/i2c_dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/system/i2c/i2c_dev.c b/apps/system/i2c/i2c_dev.c index 2d9946be0..d5c65f236 100644 --- a/apps/system/i2c/i2c_dev.c +++ b/apps/system/i2c/i2c_dev.c @@ -201,7 +201,7 @@ int cmd_dev(FAR struct i2ctool_s *i2ctool, int argc, char **argv) else { msg[1].buffer = (uint8_t*)&u.data16; - msg[2].length = 2; + msg[1].length = 2; } if (i2ctool->start) |