From 8ba8be70b888cff9eb64683afab270e807afde7a Mon Sep 17 00:00:00 2001 From: Justin Newberry Date: Thu, 13 Apr 2023 13:21:49 +0000 Subject: [PATCH] fix order --- selfdrive/car/subaru/carcontroller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/car/subaru/carcontroller.py b/selfdrive/car/subaru/carcontroller.py index c567324579..f7169bb8cb 100644 --- a/selfdrive/car/subaru/carcontroller.py +++ b/selfdrive/car/subaru/carcontroller.py @@ -86,7 +86,7 @@ class CarController: hud_control.leftLaneDepart, hud_control.rightLaneDepart)) self.es_lkas_cnt = CS.es_lkas_msg["COUNTER"] - if self.infotainmentstatus_cnt != CS.es_infotainmentstatus_msg["COUNTER"] and self.CP.carFingerprint in GLOBAL_GEN2: + if self.CP.carFingerprint in GLOBAL_GEN2 and self.infotainmentstatus_cnt != CS.es_infotainmentstatus_msg["COUNTER"]: can_sends.append(subarucan.create_infotainmentstatus(self.packer, CS.es_infotainmentstatus_msg, hud_control.visualAlert)) self.infotainmentstatus_cnt = CS.es_infotainmentstatus_msg["COUNTER"]