mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-21 04:53:47 +08:00
add athena last ping time to deviceState (#20961)
old-commit-hash: 4e17c0b01a
This commit is contained in:
+1
-1
Submodule cereal updated: c429707aef...c73da3724d
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user