1
0
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:
Roman Zeyde 2016-10-14 20:55:06 +03:00 committed by Pavol Rusnak
parent c6094dc9ad
commit d1397c779c

View File

@ -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: