fix honda crash

pull/33208/head
Shane Smiskol 9 months ago
parent 58739897f5
commit cfb242b584
  1. 6
      selfdrive/car/honda/carcontroller.py

@ -83,11 +83,11 @@ def process_hud_alert(hud_alert):
# priority is: FCW, steer required, all others # priority is: FCW, steer required, all others
if hud_alert == VisualAlert.fcw: if hud_alert == VisualAlert.fcw:
fcw_display = VISUAL_HUD[hud_alert.raw] fcw_display = VISUAL_HUD[hud_alert]
elif hud_alert in (VisualAlert.steerRequired, VisualAlert.ldw): elif hud_alert in (VisualAlert.steerRequired, VisualAlert.ldw):
steer_required = VISUAL_HUD[hud_alert.raw] steer_required = VISUAL_HUD[hud_alert]
else: else:
acc_alert = VISUAL_HUD[hud_alert.raw] acc_alert = VISUAL_HUD[hud_alert]
return fcw_display, steer_required, acc_alert return fcw_display, steer_required, acc_alert

Loading…
Cancel
Save