Skip to content
Snippets Groups Projects
Commit bb516af1 authored by Damien George's avatar Damien George
Browse files

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.
parent 43141ddb
No related branches found
No related tags found
No related merge requests found
...@@ -81,6 +81,7 @@ def init(): ...@@ -81,6 +81,7 @@ def init():
if len(devices) > 1: if len(devices) > 1:
raise ValueError("Multiple DFU devices found") raise ValueError("Multiple DFU devices found")
__dev = devices[0] __dev = devices[0]
__dev.set_configuration()
# Claim DFU interface # Claim DFU interface
usb.util.claim_interface(__dev, __DFU_INTERFACE) usb.util.claim_interface(__dev, __DFU_INTERFACE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment