From 4e17c0b01a70acd6df9fbe47689e299877f3cd77 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Wed, 19 May 2021 00:19:49 -0700 Subject: [PATCH] add athena last ping time to deviceState (#20961) --- cereal | 2 +- selfdrive/thermald/thermald.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cereal b/cereal index c429707aef..c73da3724d 160000 --- a/cereal +++ b/cereal @@ -1 +1 @@ -Subproject commit c429707aefcc960657577abc1895f88ea8adaf06 +Subproject commit c73da3724d3236b59b01edf7c1e3daabcf1ce17d diff --git a/selfdrive/thermald/thermald.py b/selfdrive/thermald/thermald.py index a2d63f291c..9a3931965f 100755 --- a/selfdrive/thermald/thermald.py +++ b/selfdrive/thermald/thermald.py @@ -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)