1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-03 12:00:59 +00:00

WIP: try simplify message handler, might break something

[no changelog]
This commit is contained in:
M1nd3r 2024-12-19 18:06:15 +01:00
parent 0254571581
commit 5e4ecdaf13

View File

@ -126,13 +126,6 @@ async def handle_single_message(ctx: Context, msg: Message) -> bool:
# Find a protobuf.MessageType subclass that describes this
# message. Raises if the type is not found.
if utils.USE_THP:
name = get_msg_name(msg.type)
if name is None:
req_type = protobuf.type_for_wire(msg.type)
else:
req_type = protobuf.type_for_name(name)
else:
req_type = protobuf.type_for_wire(msg.type)
# Try to decode the message according to schema from