mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-14 03:30:02 +00:00
return ACK handling tmp
[no changelog]
This commit is contained in:
parent
e1f17dd576
commit
34940bc5f9
@ -93,16 +93,16 @@ async def handle_received_message(
|
||||
raise ThpError("Message is not encrypted. Ignoring")
|
||||
|
||||
# 2: Handle message with unexpected sequential bit
|
||||
# if seq_bit != ABP.get_expected_receive_seq_bit(ctx.channel_cache):
|
||||
# if __debug__:
|
||||
# log.debug(__name__, "Received message with an unexpected sequential bit")
|
||||
# await _send_ack(ctx, ack_bit=seq_bit)
|
||||
# raise ThpError("Received message with an unexpected sequential bit")
|
||||
if seq_bit != ABP.get_expected_receive_seq_bit(ctx.channel_cache):
|
||||
if __debug__:
|
||||
log.debug(__name__, "Received message with an unexpected sequential bit")
|
||||
await _send_ack(ctx, ack_bit=seq_bit)
|
||||
raise ThpError("Received message with an unexpected sequential bit")
|
||||
|
||||
# # 3: Send ACK in response
|
||||
# await _send_ack(ctx, ack_bit=seq_bit)
|
||||
# 3: Send ACK in response
|
||||
await _send_ack(ctx, ack_bit=seq_bit)
|
||||
|
||||
# ABP.set_expected_receive_seq_bit(ctx.channel_cache, 1 - seq_bit)
|
||||
ABP.set_expected_receive_seq_bit(ctx.channel_cache, 1 - seq_bit)
|
||||
|
||||
try:
|
||||
await _handle_message_to_app_or_channel(
|
||||
|
Loading…
Reference in New Issue
Block a user