Browse Source

correctly handle cases where the usb chunksize is smaller than the

combined write
master
michael 18 years ago
parent
commit
85690a3f99
  1. 2
      jtagkey.c

2
jtagkey.c

@ -114,9 +114,9 @@ int jtagkey_transfer(WD_TRANSFER *tr, int fd, unsigned int request, int ppbase,
int len;
DPRINTF("writing %d bytes due to %d following reads in %d chunks or full buffer\n", writepos-writebuf, nread, num);
while (pos < writepos) {
len = writepos-pos;
while (pos < writepos) {
if (len > usb_maxlen)
len = usb_maxlen;

Loading…
Cancel
Save