From 1d422ce5cf9c901d5b18e5dbfdb5ae1c95161a5a Mon Sep 17 00:00:00 2001 From: rav4kumar Date: Sun, 12 Jan 2025 14:06:50 -0700 Subject: [PATCH] static --- sunnypilot/selfdrive/controls/lib/dec_longitudinal_planner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sunnypilot/selfdrive/controls/lib/dec_longitudinal_planner.py b/sunnypilot/selfdrive/controls/lib/dec_longitudinal_planner.py index d16ddbd090..3e1e1b97cf 100644 --- a/sunnypilot/selfdrive/controls/lib/dec_longitudinal_planner.py +++ b/sunnypilot/selfdrive/controls/lib/dec_longitudinal_planner.py @@ -14,7 +14,7 @@ class DecLongitudinalPlanner: self.dynamic_experimental_controller.set_mpc_fcw_crash_cnt(self.mpc.crash_cnt) self.dynamic_experimental_controller.update(self.CP.radarUnavailable, sm) - def get_mpc_mode(self, sm) -> str | None: + def get_mpc_mode(self, sm): if not self.is_enabled or not sm['selfdriveState'].experimentalMode: return None