VW PQ: Fix exception with openpilot longitudinal (#26417)

* VW PQ: Fix exception in long control

* move default value to init
old-commit-hash: 34f580e75ee148398e6a44980053c20bf10f9797
This commit is contained in:
Jason Young
2022-11-09 04:55:37 -05:00
committed by GitHub
parent c09f5f8274
commit 7dcbc23732
+1
View File
@@ -12,6 +12,7 @@ class CarState(CarStateBase):
super().__init__(CP)
self.CCP = CarControllerParams(CP)
self.button_states = {button.event_type: False for button in self.CCP.BUTTONS}
self.esp_hold_confirmation = False
def create_button_events(self, pt_cp, buttons):
button_events = []