From c8377131dc155d1c1330762fbe79a47205204604 Mon Sep 17 00:00:00 2001 From: xx979xx <40252818+xx979xx@users.noreply.github.com> Date: Tue, 9 Jun 2020 00:15:22 +0300 Subject: [PATCH] fix auto resume logic (#1657) --- selfdrive/car/hyundai/carcontroller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/car/hyundai/carcontroller.py b/selfdrive/car/hyundai/carcontroller.py index dfd07d581c..9026afbb3a 100644 --- a/selfdrive/car/hyundai/carcontroller.py +++ b/selfdrive/car/hyundai/carcontroller.py @@ -89,7 +89,7 @@ class CarController(): # interval after 6 msgs if self.resume_cnt > 5: self.last_resume_frame = frame - self.clu11_cnt = 0 + self.resume_cnt = 0 # reset lead distnce after the car starts moving elif self.last_lead_distance != 0: self.last_lead_distance = 0