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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

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)