diff options
author | Dusan Klinec <dusan.klinec@gmail.com> | 2019-04-22 12:37:20 +0200 |
---|---|---|
committer | Dusan Klinec <dusan.klinec@gmail.com> | 2019-04-25 00:31:10 +0200 |
commit | 0aaf5e2ac8768618e4d0546ea992c9e6c1b71a41 (patch) | |
tree | ed4bc5adba81bc354eb6307392fc78fb479d228a /src/device_trezor/trezor/transport.hpp | |
parent | Merge pull request #5466 (diff) | |
download | monero-0aaf5e2ac8768618e4d0546ea992c9e6c1b71a41.tar.xz |
device/trezor: device sorting and filtering improved
- Trezor type detection refactored, T1 disabled (was enabled before which was a bug)
- Sort connected devices by env TREZOR_PATH
- Compatibility with Trezor ecosystem using TREZOR_PATH env var
- Enables to pick particular Trezor to use in GUI as we don't have the multi-device selection yet
- Dump all detected devices to log for better debugging / troubleshooting
Diffstat (limited to 'src/device_trezor/trezor/transport.hpp')
-rw-r--r-- | src/device_trezor/trezor/transport.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/device_trezor/trezor/transport.hpp b/src/device_trezor/trezor/transport.hpp index cde862547..affd91553 100644 --- a/src/device_trezor/trezor/transport.hpp +++ b/src/device_trezor/trezor/transport.hpp @@ -303,6 +303,11 @@ namespace trezor { void enumerate(t_transport_vect & res); /** + * Sorts found transports by TREZOR_PATH environment variable. + */ + void sort_transports_by_env(t_transport_vect & res); + + /** * Transforms path to the transport */ std::shared_ptr<Transport> transport(const std::string & path); |