Skip to content

Commit e088fde

Browse files
committed
no walrus
1 parent b7b425e commit e088fde

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

selfdrive/controls/controlsd.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,9 @@ def publish_logs(self, CS, start_time, CC, lac_log):
646646
CC.cruiseControl.cancel = CS.cruiseState.enabled and (not self.enabled or not self.CP.pcmCruise)
647647
if self.joystick_mode and self.sm.rcv_frame['testJoystick'] > 0 and self.sm['testJoystick'].buttons[0]:
648648
CC.cruiseControl.cancel = True
649-
if len(speeds := self.sm['longitudinalPlan'].speeds):
649+
650+
speeds = self.sm['longitudinalPlan'].speeds
651+
if len(speeds):
650652
CC.cruiseControl.resume = self.enabled and CS.cruiseState.standstill and speeds[-1] > 0.1
651653

652654
hudControl = CC.hudControl

0 commit comments

Comments
 (0)