mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-14 03:30:02 +00:00
transport/webusb: reset USB device when connecting
bridge does the same thing fixes #361
This commit is contained in:
parent
92cc7665dd
commit
408c6712c1
@ -53,6 +53,7 @@ class WebUsbHandle:
|
||||
else:
|
||||
args = ()
|
||||
raise IOError("Cannot open device", *args)
|
||||
self.handle.resetDevice()
|
||||
self.handle.claimInterface(self.interface)
|
||||
|
||||
def close(self) -> None:
|
||||
|
Loading…
Reference in New Issue
Block a user