From fec3f006aae0918f779c5189105f625d19696ed0 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 13 Nov 2014 06:27:47 -0600 Subject: Remove use of CONFIG_MASK_TASK_ARGS from the I2C tool --- apps/system/i2c/i2ctool.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'apps') 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 * * 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 */ -- cgit v1.2.3