From 6bc6db5f7adfc7bdc05fcb19e5fcef6e83d96f8c Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Tue, 13 Oct 2020 12:42:04 -0700 Subject: [PATCH] don't show giraffe alert with relay (#2335) * who has a giraffe still? * not black --- selfdrive/car/toyota/interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/car/toyota/interface.py b/selfdrive/car/toyota/interface.py index e97cc23af3..2f8c0bc9a6 100755 --- a/selfdrive/car/toyota/interface.py +++ b/selfdrive/car/toyota/interface.py @@ -317,7 +317,7 @@ class CarInterface(CarInterfaceBase): # events events = self.create_common_events(ret) - if self.cp_cam.can_invalid_cnt >= 200 and self.CP.enableCamera: + if self.cp_cam.can_invalid_cnt >= 200 and self.CP.enableCamera and not self.CP.isPandaBlack: events.add(EventName.invalidGiraffeToyota) if self.CS.low_speed_lockout and self.CP.openpilotLongitudinalControl: events.add(EventName.lowSpeedLockout)