mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 22:38:08 +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
|
||||
|
||||
# List of two-tuples (path_normal, path_debuglink)
|
||||
return list(devices.values())
|
||||
return sorted(devices.values())
|
||||
|
||||
def path_to_transport(path):
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user