From f27f3bad5ca8b367c79fe3263a5eac272502c07e Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Thu, 5 Oct 2017 08:25:11 +1300 Subject: [PATCH] libftdi: Fix tdi_tdo_seq result unpacking --- src/platforms/libftdi/jtagtap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platforms/libftdi/jtagtap.c b/src/platforms/libftdi/jtagtap.c index 11256d0..bc7ab41 100644 --- a/src/platforms/libftdi/jtagtap.c +++ b/src/platforms/libftdi/jtagtap.c @@ -173,6 +173,8 @@ jtagtap_tdi_tdo_seq(uint8_t *DO, const uint8_t final_tms, const uint8_t *DI, int /*if(rsize) printf("%02X ", tmp[index]);*/ *DO++ = tmp[index++]; } + if (rticks == 0) + *DO++ = 0; if(final_tms) { rticks++; *(--DO) >>= 1;