From cfbc3ff835d711c5afc733c964b5283ff5a998c6 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Fri, 22 Nov 2024 10:29:11 -0800 Subject: [PATCH] Ensure auto switching FD is off in Python (#2087) --- python/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/__init__.py b/python/__init__.py index d6d3ebc59..88ccf897a 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -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)