From 0782e41f6f5aa2d6a07104fc0d710d9a56dba788 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Tue, 23 Apr 2024 20:22:05 -0400 Subject: [PATCH] Revert "cs fix" This reverts commit 7bffca40d8ed8ea7493c4b21f8db28948f77c54a. --- selfdrive/car/hyundai/carstate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/car/hyundai/carstate.py b/selfdrive/car/hyundai/carstate.py index 79e4928fb0..2b80f21396 100644 --- a/selfdrive/car/hyundai/carstate.py +++ b/selfdrive/car/hyundai/carstate.py @@ -158,7 +158,7 @@ class CarState(CarStateBase): ret.rightBlindspot = cp.vl["LCA11"]["CF_Lca_IndRight"] != 0 # save the entire LKAS11 and CLU11 - if not (self.CP.flags & HyundaiFlags.CAN_CANFD and not self.CP.openpilotLongitudinalControl): + if not self.CP.flags & HyundaiFlags.CAN_CANFD: self.lkas11 = copy.copy(cp_cam.vl["LKAS11"]) self.clu11 = copy.copy(cp.vl["CLU11"]) if self.CP.flags & HyundaiFlags.CAN_CANFD and self.CP.flags & HyundaiFlags.CANFD_HDA2: @@ -314,7 +314,7 @@ class CarState(CarStateBase): if CP.flags & HyundaiFlags.CAN_CANFD: messages.append(("CAM_0x2a4", 20)) - if not (CP.flags & HyundaiFlags.CAN_CANFD and not CP.openpilotLongitudinalControl): + else: messages.append(("LKAS11", 100)) if not CP.openpilotLongitudinalControl and CP.carFingerprint in CAMERA_SCC_CAR: