Skip to content

Commit

Permalink
jtag/drivers/ftdi: Use correct command error
Browse files Browse the repository at this point in the history
Change-Id: I625acdd8a226528de86f113582e31755d679e68e
Signed-off-by: Marc Schink <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/7970
Tested-by: jenkins
Reviewed-by: Tomas Vanek <[email protected]>
Reviewed-by: Antonio Borneo <[email protected]>
  • Loading branch information
zapb-0 authored and borneoa committed Nov 18, 2023
1 parent a23c69d commit acc1717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jtag/drivers/ftdi.c
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ COMMAND_HANDLER(ftdi_handle_set_signal_command)
/* fallthrough */
default:
LOG_ERROR("unknown signal level '%s', use 0, 1 or z", CMD_ARGV[1]);
return ERROR_COMMAND_SYNTAX_ERROR;
return ERROR_COMMAND_ARGUMENT_INVALID;
}

return mpsse_flush(mpsse_ctx);
Expand Down

0 comments on commit acc1717

Please sign in to comment.