Merge pull request #296 from gsmcmullin/libftdi_tdi_tdo_fix

libftdi: Fix tdi_tdo_seq result unpacking
This commit is contained in:
Gareth McMullin 2017-10-05 08:32:08 +13:00 committed by GitHub
commit 72c86f939e
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;