From 0a03f65b2bd22402c42b4d4a6d0718f94e4f8643 Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Wed, 5 Jan 2022 06:07:36 +0800 Subject: [PATCH] controlsd: remove duplicate event relayMalfunction (#23392) old-commit-hash: 0357cf2af0bc7449e7aefff5b0f0881f1ae2adb3 --- selfdrive/controls/controlsd.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/selfdrive/controls/controlsd.py b/selfdrive/controls/controlsd.py index f70a220499..a64ac9ecfc 100755 --- a/selfdrive/controls/controlsd.py +++ b/selfdrive/controls/controlsd.py @@ -294,9 +294,6 @@ class Controls: self.events.add(EventName.posenetInvalid) if not self.sm['liveLocationKalman'].deviceStable: self.events.add(EventName.deviceFalling) - for pandaState in self.sm['pandaStates']: - if log.PandaState.FaultType.relayMalfunction in pandaState.faults: - self.events.add(EventName.relayMalfunction) if not REPLAY: # Check for mismatch between openpilot and car's PCM