Skip to content

Commit a482433

Browse files
committed
Subaru: combine panda flags
1 parent dd76e66 commit a482433

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎board/safety/safety_subaru_preglobal.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ static safety_config subaru_preglobal_init(uint16_t param) {
115115
{.msg = {{MSG_SUBARU_PG_CruiseControl, SUBARU_PG_MAIN_BUS, 8, .frequency = 20U}, { 0 }, { 0 }}},
116116
};
117117

118-
const int SUBARU_PG_PARAM_REVERSED_DRIVER_TORQUE = 1;
118+
const int SUBARU_PG_PARAM_REVERSED_DRIVER_TORQUE = 4;
119119

120120
subaru_pg_reversed_driver_torque = GET_FLAG(param, SUBARU_PG_PARAM_REVERSED_DRIVER_TORQUE);
121121
return BUILD_SAFETY_CFG(subaru_preglobal_rx_checks, SUBARU_PG_TX_MSGS);

‎python/__init__.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,7 @@ class Panda:
215215

216216
FLAG_SUBARU_GEN2 = 1
217217
FLAG_SUBARU_LONG = 2
218-
219-
FLAG_SUBARU_PREGLOBAL_REVERSED_DRIVER_TORQUE = 1
218+
FLAG_SUBARU_PREGLOBAL_REVERSED_DRIVER_TORQUE = 4
220219

221220
FLAG_NISSAN_ALT_EPS_BUS = 1
222221

0 commit comments

Comments
 (0)