summaryrefslogtreecommitdiff
path: root/apps/system/i2c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/system/i2c')
-rw-r--r--apps/system/i2c/i2c_dev.c2
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)