mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 00:03:45 +08:00
controlsd/state_transition: remove redundant check in elif (#23428)
old-commit-hash: e0338fd77b98073673f48213336965349e7194a9
This commit is contained in:
@@ -404,7 +404,7 @@ class Controls:
|
||||
# if stock cruise is completely disabled, then we can use our own set speed logic
|
||||
if not self.CP.pcmCruise:
|
||||
self.v_cruise_kph = update_v_cruise(self.v_cruise_kph, CS.buttonEvents, self.button_timers, self.enabled, self.is_metric)
|
||||
elif self.CP.pcmCruise and CS.cruiseState.enabled:
|
||||
elif CS.cruiseState.enabled:
|
||||
self.v_cruise_kph = CS.cruiseState.speed * CV.MS_TO_KPH
|
||||
|
||||
# decrement the soft disable timer at every step, as it's reset on
|
||||
|
||||
Reference in New Issue
Block a user