greatscottgadgets / saturn-v

DFU bootloader for SAMD11 and SAMD21 microcontrollers
Other
20 stars 10 forks source link

Fix DFU programming with WinUSB hosts #7

Closed mndza closed 9 months ago

mndza commented 9 months ago

Previously, DFU state was not initialized until the host explicitly configured the interface altsetting. This "set interface 0" request is not issued when using libusb's WinUSB backend. This PR forces the initialization of the DFU state at boot.