The branch, master has been updated
via b113915025b9bdcb85112897727953f55818e90f (commit)
from 5cc2b9c1cf646f98914ff5785f6f3fb994c334d1 (commit)
- Log -----------------------------------------------------------------
commit b113915025b9bdcb85112897727953f55818e90f
Author: Uwe Bonnes <bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue Feb 2 17:52:03 2010 +0100
Use max_packet_size
ftdi->max_packet_size is the best value we can get, mostly taken from the
descriptor and so right even after a 1.0 Hub
-----------------------------------------------------------------------
Summary of changes:
src/ftdi.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/src/ftdi.c b/src/ftdi.c
index 979aa23..cb065c5 100644
--- a/src/ftdi.c
+++ b/src/ftdi.c
@@ -1163,11 +1163,7 @@ static void ftdi_read_data_cb(struct libusb_transfer
*transfer)
struct ftdi_context *ftdi = tc->ftdi;
int packet_size, actual_length, num_of_chunks, chunk_remains, i, ret;
- // New hi-speed devices from FTDI use a packet size of 512 bytes
- if (ftdi->type == TYPE_2232H || ftdi->type == TYPE_4232H)
- packet_size = 512;
- else
- packet_size = 64;
+ packet_size = ftdi->max_packet_size;
actual_length = transfer->actual_length;
hooks/post-receive
--
port libftdi to libusb-1.0
--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|