Skip to content

Commit

Permalink
controlsd: remove redundant condition
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh authored and twilsonco committed Feb 16, 2022
1 parent 6849b44 commit e85931b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/controls/controlsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ def state_transition(self, CS):
# no more soft disabling condition, so go back to ENABLED
self.state = State.enabled

elif self.events.any(ET.SOFT_DISABLE) and self.soft_disable_timer > 0:
elif self.soft_disable_timer > 0:
self.current_alert_types.append(ET.SOFT_DISABLE)

elif self.soft_disable_timer <= 0:
Expand Down

0 comments on commit e85931b

Please sign in to comment.