Skip to content

Commit f5981e5

Browse files
emillindqnashif
authored andcommitted
net: shell: increase number of arguments to net suspend command
Increased variable to the mandatory amount of commands, since the comment of SHELL_SUBCMD_ADD states "Number of mandatory arguments including command name" but net suspend takes the interface number to suspend Signed-off-by: Emil Lindqvist <[email protected]>
1 parent 3ccd52b commit f5981e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/net/lib/shell/suspend.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ static int cmd_net_suspend(const struct shell *sh, size_t argc, char *argv[])
5656

5757
SHELL_SUBCMD_ADD((net), suspend, NULL,
5858
"Suspend a network interface",
59-
cmd_net_suspend, 1, 0);
59+
cmd_net_suspend, 2, 0);

0 commit comments

Comments
 (0)