mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-26 18:23:52 +08:00
interfaces: disable on falling edge of cancel button (#26493)
* both * Update ref_commit
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1 +1 @@
|
||||
b5c833a8f5b3e6202a52746fc16809c7b649d591
|
||||
2ac5ecc79218aad0319e02218b050319a180e957
|
||||
|
||||
Reference in New Issue
Block a user