From 0a658827769fcfb3c69b7cbaabff455b7d93021f Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Sun, 18 May 2025 10:08:20 -0400 Subject: [PATCH] fix --- sunnypilot/mads/mads.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sunnypilot/mads/mads.py b/sunnypilot/mads/mads.py index 8b7847c990..e505fa9a97 100644 --- a/sunnypilot/mads/mads.py +++ b/sunnypilot/mads/mads.py @@ -135,6 +135,9 @@ class ModularAssistiveDrivingSystem: self.get_wrong_car_mode(selfdrive_enable_events or set_speed_btns_enable) if selfdrive_enable_events: + if self.pedal_pressed_non_gas_pressed(CS): + self.events_sp.add(EventNameSP.pedalPressedAlertOnly) + if self.block_unified_engagement_mode(): self.events.remove(EventName.pcmEnable) self.events.remove(EventName.buttonEnable)