Skip to content

Commit 827d0a2

Browse files
committed
fixup! feat(core): switch from Python THP implementation to Rust-based one
1 parent 70c7472 commit 827d0a2

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

core/src/trezor/wire/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ def setup(*ifaces: WireInterface) -> None:
128128
async def handle_session_thp(*ifaces: WireInterface) -> None:
129129
ctx = ThpContext(*ifaces)
130130
if __debug__:
131+
_THP_IFACES.clear()
131132
_THP_IFACES.extend(ctx._iface_ctxs)
132133

133134
try:

core/src/trezor/wire/thp/interface_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ async def retransmission_loop(self) -> None:
338338
if __debug__:
339339
log.error(
340340
__name__,
341-
"(cid: %0rx) retransmission timeout",
341+
"(cid: %04x) retransmission timeout",
342342
channel_id,
343343
iface=self._iface,
344344
)

0 commit comments

Comments
 (0)