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:
parent
0254571581
commit
5e4ecdaf13
@ -126,14 +126,7 @@ 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)
|
||||
req_type = protobuf.type_for_wire(msg.type)
|
||||
|
||||
# Try to decode the message according to schema from
|
||||
# `req_type`. Raises if the message is malformed.
|
||||
|
Loading…
Reference in New Issue
Block a user