diff --git a/selfdrive/thermald/thermald.py b/selfdrive/thermald/thermald.py index d235054..ac2f845 100755 --- a/selfdrive/thermald/thermald.py +++ b/selfdrive/thermald/thermald.py @@ -10,7 +10,7 @@ from pathlib import Path import psutil import cereal.messaging as messaging -from cereal import log +from cereal import car, log from cereal.services import SERVICE_LIST from openpilot.common.dict_helpers import strip_deprecated_keys from openpilot.common.filter_simple import FirstOrderFilter @@ -296,7 +296,7 @@ def thermald_thread(end_event, hw_queue) -> None: if sm.seen['carState']: cs = sm['carState'] standstill = cs.standstill - is_parked = cs.gearShifter == log.CarState.GearShifter.park + is_parked = cs.gearShifter == car.CarState.GearShifter.park else: standstill = False is_parked = True # default safe: assume parked, no fan floor