Skip to content

Commit 596328c

Browse files
yf13xiaoxiang781216
authored andcommitted
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 <yfliu2008@qq.com>
1 parent ca52936 commit 596328c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nshlib/nsh_syscmds.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,7 @@ int cmd_rptun(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv)
615615
nsh_output(vtbl, " rptun <start|stop|reset|panic|dump> <path> "
616616
"<value>\n");
617617
nsh_output(vtbl, " rptun <reset> <path> <resetvalue>\n");
618+
#ifdef CONFIG_RPTUN_PING
618619
nsh_output(vtbl, " rptun ping <path> <times> <length> <ack> "
619620
"<period(ms)>\n\n");
620621
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)
626627
nsh_output(vtbl, " 1 - Acknowledge, no data check.\n");
627628
nsh_output(vtbl, " 2 - Acknowledge and data check.\n");
628629
nsh_output(vtbl, " <period(ms)> ping period (ms) \n\n");
630+
#endif
629631

630632
return OK;
631633
}

0 commit comments

Comments
 (0)