Skip to content

Commit

Permalink
thermald: fix panda dropout when we miss a pandaStates (commaai#24870)
Browse files Browse the repository at this point in the history
immediate fix for "panda dropout"
  • Loading branch information
sshane authored and spektor56 committed Jul 1, 2022
1 parent 928f8a1 commit 0a280a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/thermald/thermald.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def thermald_thread(end_event, hw_queue):
else:
fan_controller = EonFanController()

elif (sec_since_boot() - sm.rcv_time['pandaStates']/1e9) > DISCONNECT_TIMEOUT:
elif (sec_since_boot() - sm.rcv_time['pandaStates']) > DISCONNECT_TIMEOUT:
if onroad_conditions["ignition"]:
onroad_conditions["ignition"] = False
cloudlog.error("panda timed out onroad")
Expand Down

0 comments on commit 0a280a1

Please sign in to comment.