devanlai / webdfu

WebUSB Device Firmware Upgrade example
https://devanlai.github.io/webdfu/dfu-util/
ISC License
277 stars 95 forks source link

dfu.js: send SET_INTERFACE request for alternate 0 #15

Closed devanlai closed 3 years ago

devanlai commented 3 years ago

This pull request attempts to resolve #14.

If there are multiple alternate settings, select the alternate interface even if it's already selected. This typically is only relevant when there are multiple alternate settings and alternate 0 needs to be selected explicitly.

For testing purposes, a live copy can be accessed here: https://ternus.connifer.com/dfu-util/