From 6ab7c27d9b62c8ccb1f7f55d98f897fc0f9e6008 Mon Sep 17 00:00:00 2001 From: Rick Lan Date: Tue, 2 Jul 2019 11:21:56 +1000 Subject: [PATCH] remove unneeded changes --- selfdrive/car/honda/carcontroller.py | 2 +- selfdrive/car/toyota/interface.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/selfdrive/car/honda/carcontroller.py b/selfdrive/car/honda/carcontroller.py index 8fc9db7af..d81c26f36 100644 --- a/selfdrive/car/honda/carcontroller.py +++ b/selfdrive/car/honda/carcontroller.py @@ -148,7 +148,7 @@ class CarController(object): # Send CAN commands. can_sends = [] - if (CS.left_blinker_on or CS.right_blinker_on) and params.get("d_tempDisableSteerOnSignal") == "1": + if (CS.left_blinker_on > 0 or CS.right_blinker_on > 0) and params.get("d_tempDisableSteerOnSignal") == "1": apply_steer = 0 # Send steering command. idx = frame % 4 diff --git a/selfdrive/car/toyota/interface.py b/selfdrive/car/toyota/interface.py index 2869d5dad..83bf921d9 100755 --- a/selfdrive/car/toyota/interface.py +++ b/selfdrive/car/toyota/interface.py @@ -9,6 +9,7 @@ from selfdrive.car.toyota.values import ECU, check_ecu_msgs, CAR, NO_STOP_TIMER_ from selfdrive.car import STD_CARGO_KG from selfdrive.swaglog import cloudlog + class CarInterface(object): def __init__(self, CP, CarController): self.CP = CP