X-Git-Url: http://git.rot13.org/?p=fx2fw-sdcc;a=blobdiff_plain;f=usbjtag.c;h=decf8cb80910cff7dcac08a1797fe7a4c140e61b;hp=3c818236c97163e47ec5148f6217f0b9452ec6a4;hb=HEAD;hpb=750d9b37905b7a1cf9e8708c4688f3342c8be133 diff --git a/usbjtag.c b/usbjtag.c index 3c81823..decf8cb 100644 --- a/usbjtag.c +++ b/usbjtag.c @@ -20,7 +20,7 @@ */ // The firmware version should be regularly updated. -#define FWVERSION "4.1.0" +#define FWVERSION "4.2.0" #include "isr.h" #include "timer.h" @@ -297,7 +297,7 @@ void usb_jtag_activity(void) // Called repeatedly while the device is idle if(!(EP2468STAT & bmEP2EMPTY) && (Pending < OUTBUFFER_LEN-0x3F)) { - BYTE i, n = EP2BCL; + WORD i, n = EP2BCL|EP2BCH<<8; APTR1H = MSB( EP2FIFOBUF ); APTR1L = LSB( EP2FIFOBUF ); @@ -306,7 +306,7 @@ void usb_jtag_activity(void) // Called repeatedly while the device is idle { if(ClockBytes > 0) { - BYTE m; + WORD m; m = n-i; if(ClockBytes < m) m = ClockBytes;