mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-09 22:22:38 +00:00
chore(core): allow SkipPairing only on debug
[no changelog]
This commit is contained in:
parent
3a366482e5
commit
8cf667ff9f
@ -146,10 +146,8 @@ def get_enabled_pairing_methods(
|
||||
Returns pairing methods that are currently allowed by the device
|
||||
with respect to the wire interface the host communicates on.
|
||||
"""
|
||||
import usb
|
||||
|
||||
methods = _DEFAULT_ENABLED_PAIRING_METHODS.copy()
|
||||
if iface is not None and iface is usb.iface_wire:
|
||||
if __debug__:
|
||||
methods.append(ThpPairingMethod.SkipPairing)
|
||||
return methods
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user