From 7a11d9a810dff4bc3b6d5adea1b8ae658f26e2fc Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Fri, 15 Sep 2023 14:26:28 -0700 Subject: [PATCH] use DT_TRML --- selfdrive/thermald/thermald.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/thermald/thermald.py b/selfdrive/thermald/thermald.py index beb059c560..6733aeb316 100755 --- a/selfdrive/thermald/thermald.py +++ b/selfdrive/thermald/thermald.py @@ -213,7 +213,7 @@ def thermald_thread(end_event, hw_queue) -> None: sm.update(PANDA_STATES_TIMEOUT) # Run at 2Hz - if sm.frame % round(PANDA_STATES_FREQUENCY / 2) != 0: + if sm.frame % round(PANDA_STATES_FREQUENCY * DT_TRML) != 0: continue pandaStates = sm['pandaStates']