libftdi: Fix tdi_tdo_seq result unpacking

This commit is contained in:
Gareth McMullin 2017-10-05 08:25:11 +13:00
parent 2db42ba8e5
commit f27f3bad5c
1 changed files with 2 additions and 0 deletions

View File

@ -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;