mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-10-29 01:23:58 +08:00
SPI: add more test cases (#2462)
(cherry picked from commit 09d742cdf2b415ca6218cee2c5f58238069337fb)
This commit is contained in:
committed by
firestar5683
parent
ccea771642
commit
a0c5371835
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user