Skip to content

Commit 1035b91

Browse files
authored
Tesla: disable temp fault on hands on error (#24014)
1 parent 5c8c6fa commit 1035b91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

selfdrive/car/tesla/carstate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def update(self, cp, cp_cam):
4444
ret.steeringTorque = -cp.vl["EPAS_sysStatus"]["EPAS_torsionBarTorque"]
4545
ret.steeringPressed = (self.hands_on_level > 0)
4646
ret.steerFaultPermanent = steer_status == "EAC_FAULT"
47-
ret.steerFaultTemporary = self.steer_warning != "EAC_ERROR_IDLE"
47+
ret.steerFaultTemporary = (self.steer_warning not in ("EAC_ERROR_IDLE", "EAC_ERROR_HANDS_ON"))
4848

4949
# Cruise state
5050
cruise_state = self.can_define.dv["DI_state"]["DI_cruiseState"].get(int(cp.vl["DI_state"]["DI_cruiseState"]), None)

0 commit comments

Comments
 (0)