From 15472440c300d973ba8171bed776bf3eecd93c1e Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Wed, 12 Apr 2023 23:50:28 -0700 Subject: [PATCH] only if global --- selfdrive/car/subaru/carstate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/selfdrive/car/subaru/carstate.py b/selfdrive/car/subaru/carstate.py index ee633e69fd..bace7fe275 100644 --- a/selfdrive/car/subaru/carstate.py +++ b/selfdrive/car/subaru/carstate.py @@ -82,7 +82,8 @@ class CarState(CarStateBase): cp_es_distance = cp_body if self.car_fingerprint in GLOBAL_GEN2 else cp_cam self.es_distance_msg = copy.copy(cp_es_distance.vl["ES_Distance"]) self.es_dashstatus_msg = copy.copy(cp_cam.vl["ES_DashStatus"]) - self.es_infotainmentstatus_msg = copy.copy(cp_cam.vl["INFOTAINMENT_STATUS"]) + if self.CP.carFingerprint not in PREGLOBAL_CARS: + self.es_infotainmentstatus_msg = copy.copy(cp_cam.vl["INFOTAINMENT_STATUS"]) return ret