From 129b19cd73c6ae40afb37a7166a3d46e3a88ab11 Mon Sep 17 00:00:00 2001 From: Arne Schwarck Date: Fri, 27 Mar 2020 21:15:04 +0100 Subject: [PATCH] syntax fix --- selfdrive/car/toyota/carstate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/car/toyota/carstate.py b/selfdrive/car/toyota/carstate.py index 05cc46f9bc26ed..429c013ff8edd7 100644 --- a/selfdrive/car/toyota/carstate.py +++ b/selfdrive/car/toyota/carstate.py @@ -218,7 +218,7 @@ def update(self, cp, cp_cam, frame): ret.cruiseState.speed = min(max(7, int(ret.cruiseState.speed) - self.setspeedoffset),v_cruise_pcm_max) - if self.arne_sm.updated['latControl'] and self.v_ego > 11 and not travis: + if self.arne_sm.updated['latControl'] and ret.vEgo > 11 and not travis: angle_later = self.arne_sm['latControl'].anglelater else: angle_later = 0