Update selfdrived.py

This commit is contained in:
royjr
2026-08-24 01:25:52 -04:00
parent dc0a1b0dca
commit 4950efbf94
+2 -1
View File
@@ -575,7 +575,8 @@ class SelfdriveD(CruiseHelper):
clear_event_types = set()
if ET.WARNING not in self.state_machine.current_alert_types:
clear_event_types.add(ET.WARNING)
if self.enabled or ET.USER_DISABLE in self.state_machine.current_alert_types:
cat = self.state_machine.current_alert_types
if self.enabled or ((ET.ENABLE in cat or ET.USER_DISABLE in cat) and ET.NO_ENTRY not in cat):
clear_event_types.add(ET.NO_ENTRY)
pers = LONGITUDINAL_PERSONALITY_MAP[self.personality]