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 <Ren.Chen@ite.com.tw>
This commit is contained in:
Ren Chen 2025-03-21 10:12:51 +08:00 committed by Benjamin Cabé
commit b601a357cd

View file

@ -963,7 +963,7 @@ static int cmd_i3c_ccc_setmwl_bc(const struct shell *sh, size_t argc, char **arg
return -ENODEV; return -ENODEV;
} }
mwl.len = strtol(argv[3], NULL, 16); mwl.len = strtol(argv[2], NULL, 16);
ret = i3c_ccc_do_setmwl_all(dev, &mwl); ret = i3c_ccc_do_setmwl_all(dev, &mwl);
if (ret < 0) { if (ret < 0) {