Remove the artificial limit. The worst case is a longer timeout for the
transfer is required.
This commit is contained in:
@@ -45,10 +45,6 @@ func (end *endpoint) allocTransfer(maxLen int) *Transfer {
|
|||||||
if numIsoPackets*int(isoPacketSize) < maxLen {
|
if numIsoPackets*int(isoPacketSize) < maxLen {
|
||||||
numIsoPackets++
|
numIsoPackets++
|
||||||
}
|
}
|
||||||
// arbitrary limit
|
|
||||||
if numIsoPackets > 200 {
|
|
||||||
numIsoPackets = 200
|
|
||||||
}
|
|
||||||
xfer := C.libusb_alloc_transfer(C.int(numIsoPackets))
|
xfer := C.libusb_alloc_transfer(C.int(numIsoPackets))
|
||||||
if xfer == nil {
|
if xfer == nil {
|
||||||
log.Printf("usb: transfer allocation failed?!")
|
log.Printf("usb: transfer allocation failed?!")
|
||||||
|
Reference in New Issue
Block a user