don't subtract from p->to_recv

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1299 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Arnim Läuger 17 years ago
parent 58ddf374d6
commit 85c987695b

@ -1,3 +1,9 @@
2008-07-09 Arnim Laeuger <arniml@users.sourceforge.net>
* src/tap/usbconn/libftd2xx.c (usbconn_ftd2xx_write),
src/tap/usbconn/libftdi.c (usbconn_ftdi_write): don't subtract from
p->to_recv
2008-07-03 Mike Frysinger <vapier@gentoo.org>
* src/lib/ansidecl.h, src/lib/libiberty.h: Import headers from binutils

@ -204,7 +204,8 @@ usbconn_ftd2xx_write( usbconn_t *conn, uint8_t *buf, int len, int recv )
{
memcpy( &(p->send_buf[p->send_buffered]), buf, len );
p->send_buffered += len;
p->to_recv += recv;
if (recv > 0)
p->to_recv += recv;
if (recv < 0)
{

@ -203,7 +203,8 @@ usbconn_ftdi_write( usbconn_t *conn, uint8_t *buf, int len, int recv )
{
memcpy( &(p->send_buf[p->send_buffered]), buf, len );
p->send_buffered += len;
p->to_recv += recv;
if (recv > 0)
p->to_recv += recv;
if (recv < 0)
{

Loading…
Cancel
Save