From 633af5bb8551d3a9ef007f8f1bd2830d6a40b032 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Tue, 26 Jun 2018 17:36:29 +0200 Subject: [PATCH] libftdi/jtagtap.c: Fix error introduced with commit de33473 Seen when scanning e.g. Zync with mon jtag 6 4. --- src/platforms/libftdi/jtagtap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/libftdi/jtagtap.c b/src/platforms/libftdi/jtagtap.c index d9f2e3b..6975fc9 100644 --- a/src/platforms/libftdi/jtagtap.c +++ b/src/platforms/libftdi/jtagtap.c @@ -132,7 +132,7 @@ jtagtap_tdi_tdo_seq(uint8_t *DO, const uint8_t final_tms, const uint8_t *DI, int data[index++] = MPSSE_WRITE_TMS | ((DO)? MPSSE_DO_READ : 0) | MPSSE_LSB | MPSSE_BITMODE | MPSSE_WRITE_NEG; data[index++] = 0; if (DI) - data[index++] = (*DI)>>rticks?0x81:0x01; + data[index++] = (DI[ticks]) >> rticks?0x81 : 0x01; platform_buffer_write(data, index); } if (DO) {