From 48c46c172cddc774eaac06d2845918806a0aee40 Mon Sep 17 00:00:00 2001 From: Kolja Waschk Date: Sat, 5 Apr 2008 07:24:55 +0000 Subject: [PATCH] [ 1934843 ] Fix for USBBLASTER (U.Bonnes) git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1154 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 4 ++++ jtag/src/tap/cable/usbblaster.c | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index 5572c680..82c7fcb0 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -1,3 +1,7 @@ +2008-04-09 Kolja Waschk + + * src/tap/cable/usbblaster.c: [ 1934843 ] Fix for USBBLASTER (U.Bonnes) + 2008-04-03 Kolja Waschk * src/jtag.c: Optionally use JTAG_PROMPT environment setting for diff --git a/jtag/src/tap/cable/usbblaster.c b/jtag/src/tap/cable/usbblaster.c index 4b605cb7..29e118db 100644 --- a/jtag/src/tap/cable/usbblaster.c +++ b/jtag/src/tap/cable/usbblaster.c @@ -160,8 +160,7 @@ usbblaster_transfer( cable_t *cable, int len, char *in, char *out ) while(len > in_offset) { char tdi = in[in_offset++] ? 1 : 0; - parport_set_data( cable->link.port, OTHERS ); /* TCK low */ - if(out) parport_set_data( cable->link.port, OTHERS | (1 << READ) | (tdi << TDI)); + parport_set_data( cable->link.port, OTHERS | ((out)?(1 << READ):0) | (tdi << TDI));/* TCK low */ parport_set_data( cable->link.port, OTHERS | (1 << TCK) | (tdi << TDI)); }