interfaces: disable on falling edge of cancel button (#26493)

* both

* Update ref_commit
This commit is contained in:
Shane Smiskol
2022-11-13 20:50:28 -08:00
committed by GitHub
parent e46063086f
commit ca37d0c8cc
2 changed files with 3 additions and 3 deletions

View File

@@ -250,8 +250,8 @@ class CarInterfaceBase(ABC):
# Enable OP long on falling edge of enable buttons (defaults to accelCruise and decelCruise, overridable per-port)
if not self.CP.pcmCruise and (b.type in enable_buttons and not b.pressed):
events.add(EventName.buttonEnable)
# Disable on rising edge of cancel for both stock and OP long
if b.type == ButtonType.cancel and b.pressed:
# Disable on rising and falling edge of cancel for both stock and OP long
if b.type == ButtonType.cancel:
events.add(EventName.buttonCancel)
# Handle permanent and temporary steering faults

View File

@@ -1 +1 @@
b5c833a8f5b3e6202a52746fc16809c7b649d591
2ac5ecc79218aad0319e02218b050319a180e957