From bb15aef35eb4de6b6b81260e67e38a1ed36bcd9c Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Tue, 26 Mar 2024 16:25:33 +0100 Subject: [PATCH] Fix use of global buffer --- core/src/trezor/wire/thp_v1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/trezor/wire/thp_v1.py b/core/src/trezor/wire/thp_v1.py index fb5193eab..9c6b9a04d 100644 --- a/core/src/trezor/wire/thp_v1.py +++ b/core/src/trezor/wire/thp_v1.py @@ -52,8 +52,8 @@ async def read_message(iface: WireInterface, buffer: utils.BufferType) -> Messag def set_buffer(buffer): + global _BUFFER _BUFFER = buffer - print(_BUFFER) # TODO remove async def thp_main_loop(iface: WireInterface, is_debug_session=False):