From 98f21d560b945bb81b746f970cd3df0ab0463bc9 Mon Sep 17 00:00:00 2001 From: Luxferre <3335173-suborg@users.noreply.gitlab.com> Date: Tue, 21 Dec 2021 18:30:15 +0200 Subject: [PATCH] Switched to dynamically configured USB block size depending on endpoint params --- uniflash.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uniflash.py b/uniflash.py index 72656cd..4bc239c 100644 --- a/uniflash.py +++ b/uniflash.py @@ -28,6 +28,8 @@ def connect(vid, pid): dev.set_configuration() cfg = dev.get_active_configuration() intf = cfg[(0,0)] + global bSize + bSize = intf[0].wMaxPacketSize epIn = usb.util.find_descriptor( intf, custom_match = \