Skip to content

Commit a0b1ac6

Browse files
committed
call once
1 parent 1e83299 commit a0b1ac6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

selfdrive/car/interfaces.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,10 @@ def _update(self, c: car.CarControl) -> car.CarState:
218218

219219
def update(self, c: car.CarControl, can_strings: list[bytes]) -> car.CarState:
220220
# parse can
221+
can_list = can_capnp_to_list(can_strings)
221222
for cp in self.can_parsers:
222223
if cp is not None:
223-
cp.update_strings(can_capnp_to_list(can_strings))
224+
cp.update_strings(can_list)
224225

225226
# get CarState
226227
ret = self._update(c)

0 commit comments

Comments
 (0)