mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-10 07:20:56 +00:00
WIP: try simplify message handler, might break something
[no changelog]
This commit is contained in:
parent
aba83ab4f7
commit
0c08004fb8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user