From dcdf9a6eb4d67432ea6e2902b285cc7c97caf56c Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Thu, 22 Sep 2022 13:43:27 -0700 Subject: [PATCH] controlsd: ignore irrelevant alerts in dashcam mode (#25875) --- selfdrive/controls/controlsd.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/selfdrive/controls/controlsd.py b/selfdrive/controls/controlsd.py index 8b41e305f..5639a1f6c 100755 --- a/selfdrive/controls/controlsd.py +++ b/selfdrive/controls/controlsd.py @@ -233,6 +233,10 @@ class Controls: self.events.add(EventName.controlsInitializing) return + # no more events while in dashcam mode + if self.read_only: + return + # Block resume if cruise never previously enabled resume_pressed = any(be.type in (ButtonType.accelCruise, ButtonType.resumeCruise) for be in CS.buttonEvents) if not self.CP.pcmCruise and self.v_cruise_kph == V_CRUISE_INITIAL and resume_pressed: