mirror of
https://github.com/commaai/panda.git
synced 2026-06-15 00:27:45 +08:00
this fixes python
This commit is contained in:
committed by
Robbe Derks
parent
d51db8d976
commit
3f4942d086
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user