Skip to content

Commit 7ac7285

Browse files
author
Comma Device
committed
this fixes python
1 parent 11929ed commit 7ac7285

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

python/spi.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ def _transfer(self, endpoint: int, data, timeout: int, max_rx_len: int = 1000, e
211211
def get_protocol_version(self) -> bytes:
212212
vers_str = b"VERSION"
213213
def _get_version(spi) -> bytes:
214-
spi.writebytes(vers_str)
214+
# needs a dummy byte to get in sync
215+
spi.writebytes(b"\x00" + vers_str)
215216

216217
logger.debug("- waiting for echo")
217218
start = time.monotonic()

0 commit comments

Comments
 (0)