add athena last ping time to deviceState (#20961)

This commit is contained in:
Adeeb Shihadeh
2021-05-19 00:19:49 -07:00
committed by GitHub
parent 79050611d6
commit 4e17c0b01a
2 changed files with 5 additions and 1 deletions
+1 -1
Submodule cereal updated: c429707aef...c73da3724d
+4
View File
@@ -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)