Skip to content

Commit b601a35

Browse files
Chenhongrenkartben
authored andcommitted
drivers: i3c: shell: fix the argv index for broadcast setwml ccc
For the broadcast setwml ccc, the argument vector index of the input length is 2 instead of 3. This commit fixs this issue. Signed-off-by: Ren Chen <[email protected]>
1 parent ead1cfb commit b601a35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i3c/i3c_shell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ static int cmd_i3c_ccc_setmwl_bc(const struct shell *sh, size_t argc, char **arg
963963
return -ENODEV;
964964
}
965965

966-
mwl.len = strtol(argv[3], NULL, 16);
966+
mwl.len = strtol(argv[2], NULL, 16);
967967

968968
ret = i3c_ccc_do_setmwl_all(dev, &mwl);
969969
if (ret < 0) {

0 commit comments

Comments
 (0)