diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-11-13 06:27:47 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-11-13 06:27:47 -0600 |
commit | fec3f006aae0918f779c5189105f625d19696ed0 (patch) | |
tree | e4f18d879cfc6b696ccb7218a6087beb773126d1 /apps/system/i2c | |
parent | 724e502370e9e5683869d8b2eadfba6a4a5f787c (diff) | |
download | px4-nuttx-fec3f006aae0918f779c5189105f625d19696ed0.tar.gz px4-nuttx-fec3f006aae0918f779c5189105f625d19696ed0.tar.bz2 px4-nuttx-fec3f006aae0918f779c5189105f625d19696ed0.zip |
Remove use of CONFIG_MASK_TASK_ARGS from the I2C tool
Diffstat (limited to 'apps/system/i2c')
-rw-r--r-- | apps/system/i2c/i2ctool.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/system/i2c/i2ctool.h b/apps/system/i2c/i2ctool.h index beaf8c104..43a0ba291 100644 --- a/apps/system/i2c/i2ctool.h +++ b/apps/system/i2c/i2ctool.h @@ -1,7 +1,7 @@ /**************************************************************************** * apps/system/i2c/i2ctool.h * - * Copyright (C) 2011 Gregory Nutt. All rights reserved. + * Copyright (C) 2011, 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -93,11 +93,12 @@ #endif /* This is the maximum number of arguments that will be accepted for a - * command. The only real limit is in the OS configuration that limits - * the number of parameters passed to a task. + * command. This is only used for sizing a hardcoded array and is set + * to be sufficiently large to support all possible I2C tool arguments and + * then some. */ -#define MAX_ARGUMENTS (CONFIG_MAX_TASK_ARGS-1) +#define MAX_ARGUMENTS 12 /* Maximum size of one command line */ |