fxload fx2lp dev board
[fx2fw-sdcc] / usbjtag.c
index 3c81823..decf8cb 100644 (file)
--- a/usbjtag.c
+++ b/usbjtag.c
@@ -20,7 +20,7 @@
  */\r
  \r
 // The firmware version should be regularly updated.\r
-#define FWVERSION "4.1.0"\r
+#define FWVERSION "4.2.0"\r
 \r
 #include "isr.h"\r
 #include "timer.h"\r
@@ -297,7 +297,7 @@ void usb_jtag_activity(void) // Called repeatedly while the device is idle
 \r
    if(!(EP2468STAT & bmEP2EMPTY) && (Pending < OUTBUFFER_LEN-0x3F))\r
    {\r
-      BYTE i, n = EP2BCL;\r
+      WORD i, n = EP2BCL|EP2BCH<<8;\r
 \r
       APTR1H = MSB( EP2FIFOBUF );\r
       APTR1L = LSB( EP2FIFOBUF );\r
@@ -306,7 +306,7 @@ void usb_jtag_activity(void) // Called repeatedly while the device is idle
       {\r
          if(ClockBytes > 0)\r
          {\r
-            BYTE m;\r
+            WORD m;\r
 \r
             m = n-i;\r
             if(ClockBytes < m) m = ClockBytes;\r