From fd41eb4ef66e7055fd089eba0f118eff5620e0a6 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 9 Jun 2013 19:03:56 +1000 Subject: [PATCH] Limit usbutils LATENCY_STD to 32ms to keep transfers under 512 bytes. --- usbutils.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usbutils.h b/usbutils.h index d4e04bf6..2579dcd3 100644 --- a/usbutils.h +++ b/usbutils.h @@ -147,8 +147,11 @@ struct usb_find_devices { struct usb_endpoints *eps; }; +/* Latency is set to 32ms to prevent a transfer ever being more than 512 bytes + * +2 bytes of status such as the ftdi chip, when the chips emulate a 115200 + * baud rate, to avoid status bytes being interleaved in larger transfers. */ #define LATENCY_UNUSED 0 -#define LATENCY_STD 40 +#define LATENCY_STD 32 enum usb_types { USB_TYPE_STD = 0,