1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-10-13 11:29:11 +00:00
trezor-firmware/trezorlib/transport
matejcik 0a8b5a08c2 trezorlib: workaround for a problem with Trezor One webusb
when webusb version of T1 is wiped, the usb device changes serial
immediately (unlike TT, which changes it after reconnect).

That confuses libusb on linux, and next time the device is reset, it
will insist on re-enumeration.

To solve this, we leave some explanatory comments, and trigger the
device reset through opening the device right after a wipe.
The client instance is unusable after that, but not much we can do about
it, and on next run trezorctl will behave as if nothing bad happened.
2019-02-26 17:35:25 +01:00
..
__init__.py Revert "style" 2019-02-18 20:43:08 +01:00
bridge.py Revert "style" 2019-02-18 20:43:08 +01:00
hid.py transport/hid: reload serial when closing 2018-11-26 15:30:42 +01:00
protocol.py trezorlib: reentrant session handling 2018-11-12 12:22:32 +01:00
udp.py Revert "style" 2019-02-18 20:43:08 +01:00
webusb.py trezorlib: workaround for a problem with Trezor One webusb 2019-02-26 17:35:25 +01:00