Browse Source

- fix jlink accessing incorrect buffer element

git-svn-id: svn://svn.berlios.de/openocd/trunk@701 b42882b7-edfa-0310-969c-e2dbd0fdcd60
tags/v0.1.0
ntfreak 16 years ago
parent
commit
04eecaac4a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/jtag/jlink.c

+ 1
- 1
src/jtag/jlink.c View File

@@ -821,7 +821,7 @@ int jlink_usb_message(jlink_jtag_t *jlink_jtag, int out_length, int in_length)
else else
{ {
/* Check the result itself */ /* Check the result itself */
if (0 == usb_in_buffer[result])
if (0 == usb_in_buffer[result-1])
{ {
return result-1; return result-1;
} }


Loading…
Cancel
Save