This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit 74293114aa536ab9f012357c855ac21d97ad084d
Author: yangsong8 <[email protected]>
AuthorDate: Fri Aug 15 14:26:28 2025 +0800

    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]>
---
 system/spi/spitool.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/system/spi/spitool.h b/system/spi/spitool.h
index cf6f4bbc9..f93a00a86 100644
--- a/system/spi/spitool.h
+++ b/system/spi/spitool.h
@@ -90,7 +90,11 @@
  * then some.
  */
 
-#define MAX_ARGUMENTS 12
+#ifdef CONFIG_NSH_MAXARGUMENTS
+#define MAX_ARGUMENTS CONFIG_NSH_MAXARGUMENTS
+#else
+#define MAX_ARGUMENTS 16
+#endif
 
 /* Maximum size of one command line */
 

Reply via email to