mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-15 20:19:23 +00:00
transport_hid: return sorted list of devices (#77)
This should be deterministic, since dict.values() order is unpredictable.
This commit is contained in:
parent
c6094dc9ad
commit
d1397c779c
@ -26,7 +26,7 @@ def enumerate():
|
|||||||
devices[serial_number][1] = path
|
devices[serial_number][1] = path
|
||||||
|
|
||||||
# List of two-tuples (path_normal, path_debuglink)
|
# List of two-tuples (path_normal, path_debuglink)
|
||||||
return list(devices.values())
|
return sorted(devices.values())
|
||||||
|
|
||||||
def path_to_transport(path):
|
def path_to_transport(path):
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user