Switched to dynamically configured USB block size depending on endpoint params

This commit is contained in:
Luxferre
2021-12-21 18:30:15 +02:00
parent 204fd595b3
commit 98f21d560b
+2
View File
@@ -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 = \