1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-03-23 11:35:42 +00:00

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

This commit is contained in:
Martin Milata 2025-03-14 21:45:20 +01:00 committed by M1nd3r
parent af1c79a9f2
commit ee102b5a35

View File

@ -24,7 +24,6 @@ def write_payload_to_wire_and_add_checksum(
def write_payload_to_wire(
transport: Transport, header: MessageHeader, transport_payload: bytes
):
transport.open()
buffer = bytearray(transport_payload)
if transport.CHUNK_SIZE is None:
transport.write_chunk(buffer)