1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-02 10:04:33 +00:00

Limit usbutils LATENCY_STD to 32ms to keep transfers under 512 bytes.

This commit is contained in:
Con Kolivas 2013-06-09 19:03:56 +10:00
parent 7f1ce19059
commit fd41eb4ef6

View File

@ -147,8 +147,11 @@ struct usb_find_devices {
struct usb_endpoints *eps; 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_UNUSED 0
#define LATENCY_STD 40 #define LATENCY_STD 32
enum usb_types { enum usb_types {
USB_TYPE_STD = 0, USB_TYPE_STD = 0,