mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-04-20 17:19:01 +00:00
chore: optimize last run of transmission loop
This commit is contained in:
parent
8c5e24b93c
commit
2cd7346493
@ -34,6 +34,11 @@ class TransmissionLoop:
|
||||
await write_payload_to_wire_and_add_checksum(
|
||||
self.channel.iface, self.header, self.transport_payload
|
||||
)
|
||||
|
||||
# Do not create wait task for last iteration
|
||||
if i == max_retransmission_count - 1:
|
||||
break
|
||||
|
||||
self.wait_task = loop.spawn(self._wait(i))
|
||||
try:
|
||||
await self.wait_task
|
||||
|
Loading…
Reference in New Issue
Block a user