Skip to content

Commit 1050f53

Browse files
XenuIsWatchingkartben
authored andcommitted
drivers: i3c: shell: fix argv for rstact
fix the argv for the rstact Signed-off-by: Ryan McClelland <[email protected]>
1 parent acd8cb1 commit 1050f53

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/i3c/i3c_shell.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ static int cmd_i3c_ccc_rstact_bc(const struct shell *sh, size_t argc, char **arg
10561056
return ret;
10571057
}
10581058

1059-
/* i3c ccc rstact <device> <target> <defining byte> */
1059+
/* i3c ccc rstact <device> <target> <"set"/"get"> <defining byte> */
10601060
static int cmd_i3c_ccc_rstact(const struct shell *sh, size_t argc, char **argv)
10611061
{
10621062
const struct device *dev, *tdev;
@@ -1070,11 +1070,11 @@ static int cmd_i3c_ccc_rstact(const struct shell *sh, size_t argc, char **argv)
10701070
return ret;
10711071
}
10721072

1073-
action = strtol(argv[5], NULL, 16);
1073+
action = strtol(argv[4], NULL, 16);
10741074

1075-
if (strcmp(argv[4], "get") == 0) {
1075+
if (strcmp(argv[3], "get") == 0) {
10761076
ret = i3c_ccc_do_rstact_fmt3(desc, action, &data);
1077-
} else if (strcmp(argv[4], "set") == 0) {
1077+
} else if (strcmp(argv[3], "set") == 0) {
10781078
ret = i3c_ccc_do_rstact_fmt2(desc, action);
10791079
} else {
10801080
shell_error(sh, "I3C: invalid parameter");

0 commit comments

Comments
 (0)