From 596328cccaadfe5a564a0db07a5ea675aed251b1 Mon Sep 17 00:00:00 2001 From: Yanfeng Liu Date: Thu, 25 Jan 2024 20:34:44 +0800 Subject: [PATCH] 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 --- 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 " "\n"); nsh_output(vtbl, " rptun \n"); +#ifdef CONFIG_RPTUN_PING nsh_output(vtbl, " rptun ping " "\n\n"); nsh_output(vtbl, " 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, " ping period (ms) \n\n"); +#endif return OK; }