Bluetooth: Mesh: Shell: fix vnd model pub command
The command at most takes 11 args. argc = num of args + 1 (command name) => 12. We substruct 3 from argc (cmd name, mod id, addr). This gives argc = 9 when all args are provided for vendor model. Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
This commit is contained in:
parent
330a2f84c7
commit
e51a909343
1 changed files with 1 additions and 1 deletions
|
@ -1564,7 +1564,7 @@ static int cmd_mod_pub(const struct shell *sh, size_t argc, char *argv[])
|
||||||
argc -= 3;
|
argc -= 3;
|
||||||
argv += 3;
|
argv += 3;
|
||||||
|
|
||||||
if (argc == 1 || argc == 8) {
|
if (argc == 1 || argc == 9) {
|
||||||
cid = shell_strtoul(argv[0], 0, &err);
|
cid = shell_strtoul(argv[0], 0, &err);
|
||||||
argc--;
|
argc--;
|
||||||
argv++;
|
argv++;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue