From 5aaf5be54c544a822483ad3e7c354fdb89cae45c Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Thu, 16 Jun 2022 01:47:29 -0700 Subject: [PATCH] Mazda: fix resume spam at standstill (#24876) * Fix Mazda resume spam at standstill * one line * Revert "one line" This reverts commit 30c6504ed36adb92991acd6ebf42ffd6fe6c3b8c. --- selfdrive/car/mazda/carcontroller.py | 1 + 1 file changed, 1 insertion(+) diff --git a/selfdrive/car/mazda/carcontroller.py b/selfdrive/car/mazda/carcontroller.py index 68eebeaf71..d003079d63 100644 --- a/selfdrive/car/mazda/carcontroller.py +++ b/selfdrive/car/mazda/carcontroller.py @@ -27,6 +27,7 @@ class CarController(): CS.out.steeringTorque, CarControllerParams) self.steer_rate_limited = new_steer != apply_steer + if c.enabled: if CS.out.standstill and frame % 5 == 0: # Mazda Stop and Go requires a RES button (or gas) press if the car stops more than 3 seconds # Send Resume button at 20hz if we're engaged at standstill to support full stop and go!