From 3f4942d086679c05f0aceda264a8e890ea46a34e Mon Sep 17 00:00:00 2001 From: Comma Device Date: Wed, 21 Jan 2026 16:40:15 +0000 Subject: [PATCH] this fixes python --- python/spi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/spi.py b/python/spi.py index 67ba26907..1efdf8c31 100644 --- a/python/spi.py +++ b/python/spi.py @@ -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()