Remove the artificial limit. The worst case is a longer timeout for the

transfer is required.
This commit is contained in:
Sebastian Zagrodzki
2017-02-08 23:29:17 +01:00
parent 91119ca790
commit 66a1f45cd9

View File

@@ -45,10 +45,6 @@ func (end *endpoint) allocTransfer(maxLen int) *Transfer {
if numIsoPackets*int(isoPacketSize) < maxLen {
numIsoPackets++
}
// arbitrary limit
if numIsoPackets > 200 {
numIsoPackets = 200
}
xfer := C.libusb_alloc_transfer(C.int(numIsoPackets))
if xfer == nil {
log.Printf("usb: transfer allocation failed?!")