put this back

This commit is contained in:
MoreTore
2025-05-11 23:23:26 -05:00
parent fa980e8458
commit c3861945dd
+1 -2
View File
@@ -150,9 +150,8 @@ class Controls:
CC.cruiseControl.cancel = CS.cruiseState.enabled and (not CC.enabled or not self.CP.pcmCruise)
speeds = self.sm['longitudinalPlan'].speeds
should_stop = not self.sm['longitudinalPlan'].shouldStop
if len(speeds):
CC.cruiseControl.resume = CC.enabled and CS.cruiseState.standstill and not should_stop
CC.cruiseControl.resume = CC.enabled and CS.cruiseState.standstill and speeds[-1] > 0.1
hudControl = CC.hudControl
hudControl.setSpeed = float(CS.vCruiseCluster * CV.KPH_TO_MS)