Skip to content

Commit bb516af

Browse files
committed
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 adafruit#3476.
1 parent 43141dd commit bb516af

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tools/pydfu.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def init():
8181
if len(devices) > 1:
8282
raise ValueError("Multiple DFU devices found")
8383
__dev = devices[0]
84+
__dev.set_configuration()
8485

8586
# Claim DFU interface
8687
usb.util.claim_interface(__dev, __DFU_INTERFACE)

0 commit comments

Comments
 (0)