add athena last ping time to deviceState (#20961)

pull/20966/head
Adeeb Shihadeh 4 years ago committed by GitHub
parent 79050611d6
commit 4e17c0b01a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cereal
  2. 4
      selfdrive/thermald/thermald.py

@ -1 +1 @@
Subproject commit c429707aefcc960657577abc1895f88ea8adaf06
Subproject commit c73da3724d3236b59b01edf7c1e3daabcf1ce17d

@ -402,6 +402,10 @@ def thermald_thread():
msg.deviceState.started = started_ts is not None
msg.deviceState.startedMonoTime = int(1e9*(started_ts or 0))
last_ping = params.get("LastAthenaPingTime")
if last_ping is not None:
msg.deviceState.lastAthenaPingTime = int(last_ping)
msg.deviceState.thermalStatus = thermal_status
pm.send("deviceState", msg)

Loading…
Cancel
Save