Ensure auto switching FD is off in Python (#2087)

This commit is contained in:
Willem Melching
2024-11-22 10:29:11 -08:00
committed by GitHub
parent b770745342
commit cfbc3ff835

View File

@@ -324,6 +324,10 @@ class Panda:
# reset comms
self.can_reset_communications()
# disable automatic CAN-FD switching
for bus in range(PANDA_BUS_CNT):
self.set_canfd_auto(bus, False)
# set CAN speed
for bus in range(PANDA_BUS_CNT):
self.set_can_speed_kbps(bus, self._can_speed_kbps)