From bb516af1eb97d0c24fa12b00bfde196b3db94c66 Mon Sep 17 00:00:00 2001 From: Damien George <damien.p.george@gmail.com> Date: Thu, 14 Dec 2017 10:08:37 +1100 Subject: [PATCH] tools/pydfu.py: Call set_configuration() on fresh USB device object. This call is required before using the device (some operating systems don't need it but others do). Fixes issue #3476. --- tools/pydfu.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/pydfu.py b/tools/pydfu.py index 8c0220de8..4296f07bf 100755 --- a/tools/pydfu.py +++ b/tools/pydfu.py @@ -81,6 +81,7 @@ def init(): if len(devices) > 1: raise ValueError("Multiple DFU devices found") __dev = devices[0] + __dev.set_configuration() # Claim DFU interface usb.util.claim_interface(__dev, __DFU_INTERFACE) -- GitLab