Skip to content

Commit 7429311

Browse files
yangsong8-a1xiaoxiang781216
authored andcommitted
apps/system: fix spitool can not send data issue
when use cmd 'spi exch -b 1 -f 3000000 -m 1 -n 0 -w 32 -x 1 1f', the last character '1f' can not be trans out. Signed-off-by: yangsong8 <[email protected]>
1 parent 00154fd commit 7429311

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

system/spi/spitool.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,11 @@
9090
* then some.
9191
*/
9292

93-
#define MAX_ARGUMENTS 12
93+
#ifdef CONFIG_NSH_MAXARGUMENTS
94+
#define MAX_ARGUMENTS CONFIG_NSH_MAXARGUMENTS
95+
#else
96+
#define MAX_ARGUMENTS 16
97+
#endif
9498

9599
/* Maximum size of one command line */
96100

0 commit comments

Comments
 (0)