this fixes python

This commit is contained in:
Comma Device
2026-01-21 16:40:15 +00:00
committed by Robbe Derks
parent d51db8d976
commit 3f4942d086

View File

@@ -211,7 +211,8 @@ class PandaSpiHandle(BaseHandle):
def get_protocol_version(self) -> bytes:
vers_str = b"VERSION"
def _get_version(spi) -> bytes:
spi.writebytes(vers_str)
# needs a dummy byte to get in sync
spi.writebytes(b"\x00" + vers_str)
logger.debug("- waiting for echo")
start = time.monotonic()