mirror of https://github.com/commaai/panda.git
Ensure auto switching FD is off in Python (#2087)
This commit is contained in:
parent
b770745342
commit
cfbc3ff835
|
@ -324,6 +324,10 @@ class Panda:
|
||||||
# reset comms
|
# reset comms
|
||||||
self.can_reset_communications()
|
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
|
# set CAN speed
|
||||||
for bus in range(PANDA_BUS_CNT):
|
for bus in range(PANDA_BUS_CNT):
|
||||||
self.set_can_speed_kbps(bus, self._can_speed_kbps)
|
self.set_can_speed_kbps(bus, self._can_speed_kbps)
|
||||||
|
|
Loading…
Reference in New Issue