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:
parent
ead1cfb1aa
commit
b601a357cd
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue