Skip to content

Commit 28676ae

Browse files
XenuIsWatchingkartben
authored andcommitted
drivers: i3c: shell: fix getmxds fmt3 defbyte check
Fix the checking on the getmxds for format 3. Signed-off-by: Ryan McClelland <[email protected]>
1 parent 30b4b1b commit 28676ae

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
@@ -1711,7 +1711,7 @@ static int cmd_i3c_ccc_getmxds(const struct shell *sh, size_t argc, char **argv)
17111711
if (argc > 3) {
17121712
fmt = GETMXDS_FORMAT_3;
17131713
defbyte = strtol(argv[3], NULL, 16);
1714-
if (defbyte != GETMXDS_FORMAT_3_CRHDLY || defbyte != GETMXDS_FORMAT_3_WRRDTURN) {
1714+
if (defbyte != GETMXDS_FORMAT_3_CRHDLY && defbyte != GETMXDS_FORMAT_3_WRRDTURN) {
17151715
shell_error(sh, "Invalid defining byte.");
17161716
return -EINVAL;
17171717
}

0 commit comments

Comments
 (0)