From 3ec21f41c17d551259b881968e1b1117188c76a1 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 13 Nov 2014 06:27:47 -0600 Subject: [PATCH] Remove use of CONFIG_MASK_TASK_ARGS from the I2C tool --- system/i2c/i2ctool.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/system/i2c/i2ctool.h b/system/i2c/i2ctool.h index beaf8c104..43a0ba291 100644 --- a/system/i2c/i2ctool.h +++ b/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 */