From cae9073772f4f0c2b2a6dc2cf377e951e91dab8d Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Thu, 13 Apr 2023 21:42:44 +0200 Subject: [PATCH] fix(core): add a small delay to UDP transport - makes bootloader emulator more reliable [no changelog] --- python/src/trezorlib/transport/udp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/src/trezorlib/transport/udp.py b/python/src/trezorlib/transport/udp.py index 7e4c4614c..348be6432 100644 --- a/python/src/trezorlib/transport/udp.py +++ b/python/src/trezorlib/transport/udp.py @@ -141,6 +141,7 @@ class UdpTransport(ProtocolBasedTransport): raise TransportException("Unexpected data length") LOG.log(DUMP_PACKETS, f"sending packet: {chunk.hex()}") self.socket.sendall(chunk) + time.sleep(0.0001) def read_chunk(self) -> bytes: assert self.socket is not None