Skip to content

Commit

Permalink
whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
carleeno committed Aug 6, 2024
1 parent e5d725d commit 2e355c6
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
if time.monotonic() - self.last_mads_press < 1.0:
self.madsEnabled = not self.madsEnabled
self.CS.madsEnabled = not self.CS.madsEnabled
self.last_mads_press = time.monotonic()
self.CS.madsEnabled = self.get_acc_mads(ret.cruiseState.enabled, self.CS.accEnabled, self.CS.madsEnabled)
self.CS.madsEnabled = False if self.CS.hands_on_level >= 3 else self.CS.madsEnabled
Expand Down

0 comments on commit 2e355c6

Please sign in to comment.