1
0
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:
matejcik 2019-02-21 17:11:13 +01:00
parent 92cc7665dd
commit 408c6712c1

View File

@ -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: