Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

Commit

Permalink
Revert "Removes call to reset after call to open (#609)"
Browse files Browse the repository at this point in the history
We have identified the fix can cause more issues than it solves in some circumstances. It fixes the problem in the nominal scenario but there are cases where it actually makes the hardware device not "re open() able".

We are still working on finding better solutions but reverting this work is a safer move to avoid upgrading to a non-complete fix for this.

This reverts commit 3d2e728.
  • Loading branch information
gre committed Jun 3, 2021
1 parent e1122a9 commit 49607a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/hw-transport-webusb/src/TransportWebUSB.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export default class TransportWebUSB extends Transport<USBDevice> {
if (device.configuration === null) {
await device.selectConfiguration(configurationValue);
}
await gracefullyResetDevice(device);
const iface = device.configurations[0].interfaces.find(({ alternates }) =>
alternates.some((a) => a.interfaceClass === 255)
);
Expand Down

0 comments on commit 49607a7

Please sign in to comment.