thermald: add deviceType to logs (#31819)

* thermald: add deviceType to logs

* fix
old-commit-hash: f6665f8488
pull/32199/head
Adeeb Shihadeh 1 year ago committed by GitHub
parent 790c336218
commit 2f491dce07
  1. 2
      cereal
  2. 1
      selfdrive/thermald/thermald.py

@ -1 +1 @@
Subproject commit 93d3df3210a8c4f4c7e6f45950f73dc8a2f09a2c Subproject commit 724d1d22ac877ff75058f0d62860cf51c27f3546

@ -216,6 +216,7 @@ def thermald_thread(end_event, hw_queue) -> None:
peripheral_panda_present = peripheralState.pandaType != log.PandaState.PandaType.unknown peripheral_panda_present = peripheralState.pandaType != log.PandaState.PandaType.unknown
msg = read_thermal(thermal_config) msg = read_thermal(thermal_config)
msg.deviceState.deviceType = HARDWARE.get_device_type()
if sm.updated['pandaStates'] and len(pandaStates) > 0: if sm.updated['pandaStates'] and len(pandaStates) > 0:

Loading…
Cancel
Save