diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-09-06 21:00:48 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-09-06 21:00:48 +0000 |
commit | f8523254d0c4584e1a56d835ab0af9e8a8625c4b (patch) | |
tree | 765ebc200ed841447879eaeb06f8ad02706c5428 /apps/system/i2c/i2ctool.h | |
parent | ca6a50135e04d530ddf75b38f7fff1081ced6de4 (diff) | |
download | nuttx-f8523254d0c4584e1a56d835ab0af9e8a8625c4b.tar.gz nuttx-f8523254d0c4584e1a56d835ab0af9e8a8625c4b.tar.bz2 nuttx-f8523254d0c4584e1a56d835ab0af9e8a8625c4b.zip |
Fix a error the the STM32 I2C timeout logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3940 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/system/i2c/i2ctool.h')
-rw-r--r-- | apps/system/i2c/i2ctool.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/system/i2c/i2ctool.h b/apps/system/i2c/i2ctool.h index 5abd731aa..81b7c0682 100644 --- a/apps/system/i2c/i2ctool.h +++ b/apps/system/i2c/i2ctool.h @@ -91,10 +91,11 @@ #endif /* This is the maximum number of arguments that will be accepted for a - * command + * command. The only real limit is in the OS configuration that limits + * the number of parameters passed to a task. */ -#define MAX_ARGUMENTS 6 +#define MAX_ARGUMENTS (CONFIG_MAX_TASK_ARGS-1) /* Maximum size of one command line */ |