Skip to content

Commit

Permalink
Increase double click timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
carleeno committed Aug 8, 2024
1 parent 674528a commit 598eb56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/car/tesla/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _update(self, c):
# MADS button (right scroll wheel click) is used for voice command
# So we use double-click to toggle MADS
now = time.monotonic()
if now - self.last_mads_press < 0.5:
if now - self.last_mads_press < 1.0:
self.CS.madsEnabled = not self.CS.madsEnabled
self.last_mads_press = -1
else:
Expand Down

0 comments on commit 598eb56

Please sign in to comment.