LongControl: remove redundant check on active (#23481)

pull/23483/head
Dean Lee 3 years ago committed by GitHub
parent 4ff9ee8902
commit 4208fe018e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      selfdrive/controls/lib/longcontrol.py

@ -26,7 +26,6 @@ def long_control_state_trans(CP, active, long_control_state, v_ego, v_target_fut
else: else:
if long_control_state == LongCtrlState.off: if long_control_state == LongCtrlState.off:
if active:
long_control_state = LongCtrlState.pid long_control_state = LongCtrlState.pid
elif long_control_state == LongCtrlState.pid: elif long_control_state == LongCtrlState.pid:

Loading…
Cancel
Save