From fd34c2fa9d9d8faff68f5023e27246ac35954c70 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 17 Sep 2011 15:04:24 +0000 Subject: STM32 I2C driver will now operated in a polled, non-interrupting mode if so configured git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3960 42af7a65-404d-4744-a932-0658087f49c3 --- apps/system/i2c/i2c_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/system') 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) -- cgit v1.2.3