thermald: fix panda dropout when we miss a pandaStates (#24870)
immediate fix for "panda dropout" old-commit-hash: e910ce87a44884a3f216fbced306e8d3124a04de
This commit is contained in:
@@ -220,7 +220,7 @@ def thermald_thread(end_event, hw_queue):
|
||||
if TICI:
|
||||
fan_controller = TiciFanController()
|
||||
|
||||
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")
|
||||
|
||||
Reference in New Issue
Block a user