Skip to content

Commit

Permalink
MADS: Cruise Main button engage with cruise state available (commaai#163
Browse files Browse the repository at this point in the history
)

* MADS: Cruise Main button engage with cruise state available

* simplify

* Revert "simplify"

This reverts commit 09276bc5d250d4357f593276686045e1359c0c37.
  • Loading branch information
sunnyhaibin authored Jun 15, 2023
1 parent 8790419 commit 0063036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/car/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ def get_sp_cruise_main_state(self, cs_out, CS):
elif not self.mads_main_toggle:
mads_enabled = False
else:
mads_enabled = cs_out.cruiseState.enabled
mads_enabled = cs_out.cruiseState.available

return mads_enabled

Expand Down

0 comments on commit 0063036

Please sign in to comment.