mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-22 12:32:02 +00:00
feat(core): add loggin to receiving codec_v1 messages
[no changelog]
This commit is contained in:
parent
03762f9d98
commit
9dafca31da
@ -76,6 +76,8 @@ async def _handle_codec_v1(iface: WireInterface, packet):
|
|||||||
# If the received packet is not initial codec_v1 packet, do not send error message
|
# If the received packet is not initial codec_v1 packet, do not send error message
|
||||||
if not packet[1:3] == b"##":
|
if not packet[1:3] == b"##":
|
||||||
return
|
return
|
||||||
|
if __debug__:
|
||||||
|
log.debug(__name__, "Received codec_v1 message, returning error")
|
||||||
error_message = thp_messages.get_codec_v1_error_message()
|
error_message = thp_messages.get_codec_v1_error_message()
|
||||||
await writer.write_packet_to_wire(iface, error_message)
|
await writer.write_packet_to_wire(iface, error_message)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user