From a270f1e37a49ae072740de471bfe98658dea3b5e Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 29 Apr 2007 17:51:28 +0000 Subject: [PATCH] only read pins when needed, now it's a bit faster than a parallel cable --- jtagkey.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jtagkey.c b/jtagkey.c index c12e235..bf1cded 100644 --- a/jtagkey.c +++ b/jtagkey.c @@ -209,7 +209,9 @@ int jtagkey_transfer(WD_TRANSFER *tr, int fd, unsigned int request, int ppbase, DPRINTF("writing %d bytes\n", writepos-writebuf); for (i=0; i 0 && tr[i].cmdTrans == PP_WRITE && tr[i-1].cmdTrans == PP_READ) + ftdi_read_pins(&ftdic, readbuf+i); } #ifdef DEBUG