Skip to content
Snippets Groups Projects
Commit 44191497 authored by Yann Vernier's avatar Yann Vernier Committed by Spencer Oliver
Browse files

ft2232: fix input scan ending in drshift/irshift


The final bit was incorrectly added as output data, even if no data was
to be written. Changed it to match handling of other bits.

Change-Id: I91e5ba0c932876bfb579c22e6c7ef0300baa1534
Signed-off-by: default avatarYann Vernier <yann.vernier@orsoc.se>
Reviewed-on: http://openocd.zylin.com/1049


Tested-by: jenkins
Reviewed-by: default avatarSpencer Oliver <spen@spen-soft.co.uk>
parent 50c93152
Branches
Tags
No related merge requests found
......@@ -1061,6 +1061,7 @@ static void ft2232_add_scan(bool ir_scan, enum scan_type type, uint8_t *buffer,
/* LOG_DEBUG("added TDI bits (i %i)", bits_left - 1); */
}
buffer_write(0x0);
if (type != SCAN_IN)
buffer_write(last_bit);
} else {
int tms_bits;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment