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)); }