summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormlu <mlu@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-04-25 02:53:07 +0000
committermlu <mlu@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-04-25 02:53:07 +0000
commit39f76220a8233211ab46053acd10507e10c309fb (patch)
treeaef27ab8f3357d9325ac15f1532025946409bac2 /src
parent773ebb6bba3334b6339d9df9c7f541adaabb82c0 (diff)
downloadopenocd+libswd-39f76220a8233211ab46053acd10507e10c309fb.tar.gz
openocd+libswd-39f76220a8233211ab46053acd10507e10c309fb.tar.bz2
openocd+libswd-39f76220a8233211ab46053acd10507e10c309fb.tar.xz
openocd+libswd-39f76220a8233211ab46053acd10507e10c309fb.zip
Corrected statement order
git-svn-id: svn://svn.berlios.de/openocd/trunk@1528 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r--src/jtag/ft2232.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jtag/ft2232.c b/src/jtag/ft2232.c
index a9854653..3075b1b4 100644
--- a/src/jtag/ft2232.c
+++ b/src/jtag/ft2232.c
@@ -1590,13 +1590,13 @@ static int ft2232_execute_queue()
if (ft2232_execute_command(cmd) != ERROR_OK)
retval = ERROR_JTAG_QUEUE_FAILED;
/* Start reading input before FT2232 TX buffer fills up */
- if (ft2232_expect_read > 280)
+ cmd = cmd->next;
+ if (ft2232_expect_read > 256)
{
if (ft2232_send_and_recv(first_unsent, cmd) != ERROR_OK)
retval = ERROR_JTAG_QUEUE_FAILED;
first_unsent = cmd;
}
- cmd = cmd->next;
}
if (require_send > 0)