From 8dc543533109af6aa0220170b69acc1a44521bb7 Mon Sep 17 00:00:00 2001 From: Eric Brown Date: Wed, 18 Dec 2024 15:17:18 -0700 Subject: [PATCH] Subaru: combine platform panda flags (#2115) Subaru: combine panda flags --- board/safety/safety_subaru_preglobal.h | 2 +- python/__init__.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/board/safety/safety_subaru_preglobal.h b/board/safety/safety_subaru_preglobal.h index 760840f3..a1efdfe6 100644 --- a/board/safety/safety_subaru_preglobal.h +++ b/board/safety/safety_subaru_preglobal.h @@ -115,7 +115,7 @@ static safety_config subaru_preglobal_init(uint16_t param) { {.msg = {{MSG_SUBARU_PG_CruiseControl, SUBARU_PG_MAIN_BUS, 8, .frequency = 20U}, { 0 }, { 0 }}}, }; - const int SUBARU_PG_PARAM_REVERSED_DRIVER_TORQUE = 1; + const int SUBARU_PG_PARAM_REVERSED_DRIVER_TORQUE = 4; subaru_pg_reversed_driver_torque = GET_FLAG(param, SUBARU_PG_PARAM_REVERSED_DRIVER_TORQUE); return BUILD_SAFETY_CFG(subaru_preglobal_rx_checks, SUBARU_PG_TX_MSGS); diff --git a/python/__init__.py b/python/__init__.py index 4e729d30..36227269 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -215,8 +215,7 @@ class Panda: FLAG_SUBARU_GEN2 = 1 FLAG_SUBARU_LONG = 2 - - FLAG_SUBARU_PREGLOBAL_REVERSED_DRIVER_TORQUE = 1 + FLAG_SUBARU_PREGLOBAL_REVERSED_DRIVER_TORQUE = 4 FLAG_NISSAN_ALT_EPS_BUS = 1