diff options
author | Julian Oes <joes@student.ethz.ch> | 2012-09-20 11:57:29 +0200 |
---|---|---|
committer | Julian Oes <joes@student.ethz.ch> | 2012-09-20 11:57:29 +0200 |
commit | df8bbb2d308adc6fa46a2f5299913b9044a53b01 (patch) | |
tree | f203e996cd49bb6515e1c14a7427db8679a4314f /apps | |
parent | e7241fb37f59d53a65a447058ad0d3ce8249a82e (diff) | |
download | px4-firmware-df8bbb2d308adc6fa46a2f5299913b9044a53b01.tar.gz px4-firmware-df8bbb2d308adc6fa46a2f5299913b9044a53b01.tar.bz2 px4-firmware-df8bbb2d308adc6fa46a2f5299913b9044a53b01.zip |
workaround in nuttx to allow for more than 6 arguments when starting an app (in my opinion needed)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/nshlib/nsh.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/nshlib/nsh.h b/apps/nshlib/nsh.h index dac91ba05..e6dd2683b 100644 --- a/apps/nshlib/nsh.h +++ b/apps/nshlib/nsh.h @@ -234,9 +234,11 @@ #endif /* This is the maximum number of arguments that will be accepted for a command */ - -#define NSH_MAX_ARGUMENTS 6 - +#ifdef CONFIG_NSH_MAX_ARGUMENTS +# define NSH_MAX_ARGUMENTS CONFIG_NSH_MAX_ARGUMENTS +#else +# define NSH_MAX_ARGUMENTS 10 +#endif /* strerror() produces much nicer output but is, however, quite large and * will only be used if CONFIG_NSH_STRERROR is defined. Note that the strerror * interface must also have been enabled with CONFIG_LIBC_STRERROR. |