controlsd: remove duplicate event relayMalfunction (#23392)

pull/23404/head
Dean Lee 3 years ago committed by GitHub
parent 7257f71739
commit 0357cf2af0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      selfdrive/controls/controlsd.py

@ -294,9 +294,6 @@ class Controls:
self.events.add(EventName.posenetInvalid) self.events.add(EventName.posenetInvalid)
if not self.sm['liveLocationKalman'].deviceStable: if not self.sm['liveLocationKalman'].deviceStable:
self.events.add(EventName.deviceFalling) 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: if not REPLAY:
# Check for mismatch between openpilot and car's PCM # Check for mismatch between openpilot and car's PCM

Loading…
Cancel
Save