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


The following commit(s) were added to refs/heads/master by this push:
     new 596328ccc nshcmd/rptun: align help mesg with impl
596328ccc is described below

commit 596328cccaadfe5a564a0db07a5ea675aed251b1
Author: Yanfeng Liu <yfliu2...@qq.com>
AuthorDate: Thu Jan 25 20:34:44 2024 +0800

    nshcmd/rptun: align help mesg with impl
    
    the ping subcommand is guarded with RPTUN_PING in its handler.
    its help mesg should have same guard to avoid confusing user.
    
    Signed-off-by: Yanfeng Liu <yfliu2...@qq.com>
---
 nshlib/nsh_syscmds.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/nshlib/nsh_syscmds.c b/nshlib/nsh_syscmds.c
index 2797874af..9882099a2 100644
--- a/nshlib/nsh_syscmds.c
+++ b/nshlib/nsh_syscmds.c
@@ -615,6 +615,7 @@ int cmd_rptun(FAR struct nsh_vtbl_s *vtbl, int argc, FAR 
char **argv)
       nsh_output(vtbl, "  rptun <start|stop|reset|panic|dump> <path> "
                 "<value>\n");
       nsh_output(vtbl, "  rptun <reset> <path> <resetvalue>\n");
+#ifdef CONFIG_RPTUN_PING
       nsh_output(vtbl, "  rptun ping <path> <times> <length> <ack> "
                 "<period(ms)>\n\n");
       nsh_output(vtbl, "  <path>         Rptun device path.\n");
@@ -626,6 +627,7 @@ int cmd_rptun(FAR struct nsh_vtbl_s *vtbl, int argc, FAR 
char **argv)
       nsh_output(vtbl, "                 1 - Acknowledge, no data check.\n");
       nsh_output(vtbl, "                 2 - Acknowledge and data check.\n");
       nsh_output(vtbl, "  <period(ms)>   ping period (ms) \n\n");
+#endif
 
       return OK;
     }

Reply via email to