* src/tap/usbconn/libftdi.c (usbconn_ftdi_write): Make sure

scheduled send bytes be less than URJ_USBCONN_FTDX_MAXSEND.
  * src/tap/usbconn/libftd2xx.c (usbconn_ftd2xx_write): Likewise.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1753 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Jie Zhang 15 years ago
parent 442ab5e1bc
commit 4e273abf91

@ -1,3 +1,9 @@
2010-02-02 Jie Zhang <jie.zhang@analog.com>
* src/tap/usbconn/libftdi.c (usbconn_ftdi_write): Make sure
scheduled send bytes be less than URJ_USBCONN_FTDX_MAXSEND.
* src/tap/usbconn/libftd2xx.c (usbconn_ftd2xx_write): Likewise.
2010-02-01 Jie Zhang <jie.zhang@analog.com>
* tap/cable/ft2232.c (ft2232_gnice_done): Turn LED off when done.

@ -249,7 +249,7 @@ usbconn_ftd2xx_write (urj_usbconn_t *conn, uint8_t *buf, int len, int recv)
with this write
Case B: max number of scheduled send bytes has been reached */
if ((p->to_recv + recv > URJ_USBCONN_FTD2XX_MAXRECV)
|| ((p->send_buffered > URJ_USBCONN_FTDX_MAXSEND)
|| ((p->send_buffered + len > URJ_USBCONN_FTDX_MAXSEND)
&& (p->to_recv == 0)))
xferred = usbconn_ftd2xx_flush (p);

@ -193,7 +193,7 @@ usbconn_ftdi_write (urj_usbconn_t *conn, uint8_t *buf, int len, int recv)
with this write
Case B: max number of scheduled send bytes has been reached */
if ((p->to_recv + recv > URJ_USBCONN_FTDI_MAXRECV)
|| ((p->send_buffered > URJ_USBCONN_FTDX_MAXSEND)
|| ((p->send_buffered + len > URJ_USBCONN_FTDX_MAXSEND)
&& (p->to_recv == 0)))
xferred = usbconn_ftdi_flush (p);

Loading…
Cancel
Save