diff --git a/python/__init__.py b/python/__init__.py index e996e66f76..0cbf1ef94b 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -832,12 +832,9 @@ def can_reset_communications(self): def can_send_many(self, arr, timeout=CAN_SEND_TIMEOUT_MS): snds = pack_can_buffer(arr) for tx in snds: - while True: + while len(tx) > 0: bs = self._handle.bulkWrite(3, tx, timeout=timeout) tx = tx[bs:] - if len(tx) == 0: - break - logger.error("CAN: PARTIAL SEND MANY, RETRYING") def can_send(self, addr, dat, bus, timeout=CAN_SEND_TIMEOUT_MS): self.can_send_many([[addr, dat, bus]], timeout=timeout)