mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
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>
This commit is contained in:
parent
ca5293629f
commit
596328ccca
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue