mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-18 05:28:40 +00:00
tests/config: fix usb hid logic
This commit is contained in:
parent
5860207e68
commit
91222b4687
@ -52,10 +52,9 @@ def pipe_exists(path):
|
||||
return False
|
||||
|
||||
|
||||
if HID_ENABLED:
|
||||
if HID_ENABLED and len(HidTransport.enumerate()) > 0:
|
||||
|
||||
devices = HidTransport.enumerate()
|
||||
if len(devices) > 0:
|
||||
print('Using TREZOR')
|
||||
TRANSPORT = HidTransport
|
||||
TRANSPORT_ARGS = (devices[0],)
|
||||
|
Loading…
Reference in New Issue
Block a user