don't show giraffe alert with relay (#2335)

* who has a giraffe still?

* not black
This commit is contained in:
Adeeb Shihadeh
2020-10-13 12:42:04 -07:00
committed by GitHub
parent ce85e402f4
commit 6bc6db5f7a
+1 -1
View File
@@ -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)