From fd8514eee339e68df48c27711b79e90cbca43f76 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Thu, 18 Jun 2020 15:37:03 -0700 Subject: [PATCH] hwType is in health --- selfdrive/controls/lib/events.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/selfdrive/controls/lib/events.py b/selfdrive/controls/lib/events.py index 6d69586c87..079c79e72b 100644 --- a/selfdrive/controls/lib/events.py +++ b/selfdrive/controls/lib/events.py @@ -188,12 +188,12 @@ def calibration_incomplete_alert(CP, sm, metric): Priority.LOWEST, VisualAlert.none, AudibleAlert.none, 0., 0., .2) def no_gps_alert(CP, sm, metric): - two = sm['thermal'].hwType == log.HealthData.HwType.uno + two = sm['health'].hwType == log.HealthData.HwType.uno return Alert( "Poor GPS reception", - "If sky visible, contact support" if two else "Check GPS antenna placement", + "If sky is visible, contact support" if two else "Check GPS antenna placement", AlertStatus.normal, AlertSize.mid, - Priority.LOWER, VisualAlert.none, AudibleAlert.none, 0., 0., .2, creation_delay=300.), + Priority.LOWER, VisualAlert.none, AudibleAlert.none, 0., 0., .2, creation_delay=300.) EVENTS = { # ********** events with no alerts **********