Switched to dynamically configured USB block size depending on endpoint params
This commit is contained in:
@@ -28,6 +28,8 @@ def connect(vid, pid):
|
|||||||
dev.set_configuration()
|
dev.set_configuration()
|
||||||
cfg = dev.get_active_configuration()
|
cfg = dev.get_active_configuration()
|
||||||
intf = cfg[(0,0)]
|
intf = cfg[(0,0)]
|
||||||
|
global bSize
|
||||||
|
bSize = intf[0].wMaxPacketSize
|
||||||
epIn = usb.util.find_descriptor(
|
epIn = usb.util.find_descriptor(
|
||||||
intf,
|
intf,
|
||||||
custom_match = \
|
custom_match = \
|
||||||
|
|||||||
Reference in New Issue
Block a user