From 0278357dd661ac6e73afffc7f7701873e20a9cdf Mon Sep 17 00:00:00 2001 From: Charlie <4663128+bravochar@users.noreply.github.com> Date: Fri, 13 Sep 2024 14:59:36 -0400 Subject: [PATCH] Add long tests? --- board/safety/safety_subaru.h | 5 +++-- tests/safety/test_subaru.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/board/safety/safety_subaru.h b/board/safety/safety_subaru.h index 7ed77695a7..115f3cd165 100644 --- a/board/safety/safety_subaru.h +++ b/board/safety/safety_subaru.h @@ -173,8 +173,9 @@ static void subaru_rx_hook(const CANPacket_t *to_push) { bool cruise_engaged = GET_BIT(to_push, 41U); pcm_cruise_check(cruise_engaged); - // LKAS Angle cars use different message - } else if (subaru_lkas_angle && (addr == MSG_SUBARU_ES_DashStatus) && (bus == SUBARU_CAM_BUS)) { + } + else if (subaru_lkas_angle && (addr == MSG_SUBARU_ES_DashStatus) && (bus == SUBARU_CAM_BUS)) { + // LKAS Angle cars use different message bool cruise_engaged = GET_BIT(to_push, 36U); pcm_cruise_check(cruise_engaged); } diff --git a/tests/safety/test_subaru.py b/tests/safety/test_subaru.py index 440899dab0..92f25911a5 100755 --- a/tests/safety/test_subaru.py +++ b/tests/safety/test_subaru.py @@ -206,7 +206,7 @@ class TestSubaruGen2TorqueSafetyBase(TestSubaruTorqueSafetyBase): MAX_TORQUE = 1000 -class TestSubaruAngleSafety(TestSubaruAngleSafetyBase): +class TestSubaruAngleSafety(TestSubaruStockLongitudinalSafetyBase, TestSubaruAngleSafetyBase): FLAGS = Panda.FLAG_SUBARU_LKAS_ANGLE