From 0aaf5e2ac8768618e4d0546ea992c9e6c1b71a41 Mon Sep 17 00:00:00 2001 From: Dusan Klinec Date: Mon, 22 Apr 2019 12:37:20 +0200 Subject: 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 --- src/device_trezor/trezor/transport.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/device_trezor/trezor/transport.hpp') 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 @@ -302,6 +302,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 */ -- cgit v1.2.3