- fix jlink accessing incorrect buffer element
git-svn-id: svn://svn.berlios.de/openocd/trunk@701 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
parent
61933601bb
commit
04eecaac4a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue