probably fine

pull/26463/head
Shane Smiskol 3 years ago
parent c882e9e266
commit d26a573c04
  1. 2
      selfdrive/car/__init__.py

@ -25,7 +25,7 @@ def create_button_events(cur_button: int, prev_button: int, buttons_dict: Dict[i
unpressed: int = 0, init: Optional[int] = None) -> List[capnp.lib.capnp._DynamicStructBuilder]: unpressed: int = 0, init: Optional[int] = None) -> List[capnp.lib.capnp._DynamicStructBuilder]:
# initializing, don't add any events # initializing, don't add any events
events = [] events = []
if init is not None and prev_button == init and cur_button == unpressed: if cur_button == unpressed and prev_button == init:
return events return events
# Handle transitions between buttons without going to the unpressed value # Handle transitions between buttons without going to the unpressed value

Loading…
Cancel
Save