Skip to content

Commit

Permalink
Always on lines
Browse files Browse the repository at this point in the history
Only paint lines if enabled
  • Loading branch information
michaelhonan committed Mar 3, 2022
1 parent a75eeb8 commit b14a1df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selfdrive/car/subaru/subarucan.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def create_es_lkas(packer, es_lkas_msg, enabled, visual_alert, left_line, right_
else:
values["LKAS_Dash_State"] = 0 # LKAS Not enabled

values["LKAS_Left_Line_Visible"] = int(left_line)
values["LKAS_Right_Line_Visible"] = int(right_line)
values["LKAS_Left_Line_Visible"] = 1 if enabled else 0
values["LKAS_Right_Line_Visible"] = 1 if enabled else 0

return packer.make_can_msg("ES_LKAS_State", 0, values)

Expand Down

0 comments on commit b14a1df

Please sign in to comment.