1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-04-19 00:29:03 +00:00

fixup! chore(core): adapt trezorlib transports to session based [no changelog]

This commit is contained in:
Roman Zeyde 2025-03-20 14:45:25 +02:00 committed by M1nd3r
parent 9e4790fbda
commit 43505420cd

View File

@ -88,7 +88,7 @@ class ProtocolV1Channel(Channel):
chunk = b"?" + buffer[: chunk_size - 1]
chunk = chunk.ljust(chunk_size, b"\x00")
self.transport.write_chunk(chunk)
buffer = buffer[chunk_size - 1:]
buffer = buffer[chunk_size - 1 :]
def _read(self, timeout: float | None = None) -> t.Tuple[int, bytes]:
if timeout is None: