diff options
-rw-r--r-- | src/jtag/jlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jtag/jlink.c b/src/jtag/jlink.c index 943cfdc..96e4efd 100644 --- a/src/jtag/jlink.c +++ b/src/jtag/jlink.c @@ -821,7 +821,7 @@ int jlink_usb_message(jlink_jtag_t *jlink_jtag, int out_length, int in_length) else { /* Check the result itself */ - if (0 == usb_in_buffer[result]) + if (0 == usb_in_buffer[result-1]) { return result-1; } |