diff --git a/opendbc/car/volkswagen/carcontroller.py b/opendbc/car/volkswagen/carcontroller.py index 4c434cc9d..df9225b17 100644 --- a/opendbc/car/volkswagen/carcontroller.py +++ b/opendbc/car/volkswagen/carcontroller.py @@ -128,11 +128,11 @@ class CarController(CarControllerBase): # MEB Emergency Assist brake jerks after 30s of continued hands-off time. # We send the stock wheeltouch message to start the stock DM timer when openpilot latches the critical driver monitoring alert # Synced with stock counter - if self.frame % self.CCP.KLR_01_STEP == 0 and CS.klr_stock_values["COUNTER"] != self.klr_counter_last: + if CS.klr_stock_values["COUNTER"] != self.klr_counter_last: lat_active = CC.latActive and not CC.driverMonitoringEscalation can_sends.append(mebcan.create_capacitive_wheel_touch(self.packer_pt, self.CAN.cam, lat_active, CS.klr_stock_values)) can_sends.append(mebcan.create_capacitive_wheel_touch(self.packer_pt, self.CAN.pt, lat_active, CS.klr_stock_values)) - self.klr_counter_last = CS.klr_stock_values["COUNTER"] + self.klr_counter_last = CS.klr_stock_values["COUNTER"] # **** Acceleration Controls ******************************************** #