SPI: add more test cases (#2462)

(cherry picked from commit 09d742cdf2b415ca6218cee2c5f58238069337fb)
This commit is contained in:
Adeeb Shihadeh
2026-10-13 16:30:41 -07:00
committed by firestar5683
parent ccea771642
commit a0c5371835
2 changed files with 51 additions and 1 deletions
+1 -1
View File
@@ -710,7 +710,7 @@ class Panda:
@ensure_can_packet_version
def can_send_many(self, arr, *, fd=False, timeout=CAN_SEND_TIMEOUT_MS):
snds = pack_can_buffer(arr, chunk=(not self.spi), fd=fd)
snds = pack_can_buffer(arr, chunk=True, fd=fd)
for tx in snds:
while len(tx) > 0:
bs = self._handle.bulkWrite(3, tx, timeout=timeout)