From 46519c7eb4ab9dce954a221ee8ac72bd23874cb4 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sun, 8 Nov 2020 15:22:27 -0800 Subject: [PATCH] don't show unspported alert with no health packet old-commit-hash: 30112f9addccf8c4ae7e32f608fd845bda0985fa --- selfdrive/thermald/thermald.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/selfdrive/thermald/thermald.py b/selfdrive/thermald/thermald.py index 47782c0de1..e902a9eb74 100755 --- a/selfdrive/thermald/thermald.py +++ b/selfdrive/thermald/thermald.py @@ -365,8 +365,9 @@ def thermald_thread(): set_offroad_alert_if_changed("Offroad_TemperatureTooHigh", (not startup_conditions["device_temp_good"])) should_start = all(startup_conditions.values()) - startup_conditions["hardware_supported"] = health is not None and health.health.hwType not in [log.HealthData.HwType.whitePanda, log.HealthData.HwType.greyPanda] - set_offroad_alert_if_changed("Offroad_HardwareUnsupported", not startup_conditions["hardware_supported"]) + startup_conditions["hardware_supported"] = health is not None and health.health.hwType not in [log.HealthData.HwType.whitePanda, + log.HealthData.HwType.greyPanda] + set_offroad_alert_if_changed("Offroad_HardwareUnsupported", health is not None and not startup_conditions["hardware_supported"]) if should_start: if not should_start_prev: