From 66a1f45cd9151eef375c9af6d40f20eafbd8ec8d Mon Sep 17 00:00:00 2001 From: Sebastian Zagrodzki Date: Wed, 8 Feb 2017 23:29:17 +0100 Subject: [PATCH] Remove the artificial limit. The worst case is a longer timeout for the transfer is required. --- usb/iso.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/usb/iso.go b/usb/iso.go index a62df3a..20a6da6 100644 --- a/usb/iso.go +++ b/usb/iso.go @@ -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?!")