From ffc950a116bfdae31acda48aadf52b3b5f695b9f Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Wed, 16 Apr 2025 18:41:58 +0200 Subject: [PATCH] fixup! feat(core): add ble wire interface to interface_manager --- core/src/trezor/wire/thp/interface_manager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/trezor/wire/thp/interface_manager.py b/core/src/trezor/wire/thp/interface_manager.py index 71aca97327..e36521e1c2 100644 --- a/core/src/trezor/wire/thp/interface_manager.py +++ b/core/src/trezor/wire/thp/interface_manager.py @@ -1,6 +1,6 @@ from typing import TYPE_CHECKING -import bluetooth +import trezorble as ble import usb _WIRE_INTERFACE_USB = b"\x01" @@ -18,7 +18,7 @@ def decode_iface(cached_iface: bytes) -> WireInterface: raise RuntimeError("There is no valid USB WireInterface") return iface elif cached_iface == _WIRE_INTERFACE_BLE: - iface = bluetooth.iface_ble + iface = ble.interface if iface is None: raise RuntimeError("There is no valid BLE WireInterface") return iface @@ -29,6 +29,6 @@ def encode_iface(iface: WireInterface) -> bytes: """Encode wire interface into bytes.""" if iface is usb.iface_wire: return _WIRE_INTERFACE_USB - if iface is bluetooth.iface_ble: + if iface is ble.interface: return _WIRE_INTERFACE_BLE raise Exception("Unknown WireInterface")