Skip to content

Commit 2281bed

Browse files
committed
Remove bad cond
1 parent c6e2b39 commit 2281bed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opendbc/safety/safety/safety_subaru.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ static void subaru_rx_hook(const CANPacket_t *to_push) {
115115
}
116116

117117
// enter controls on rising edge of ACC, exit controls on ACC off
118-
if (true) {
118+
if (subaru_lkas_angle) {
119119
if ((addr == MSG_SUBARU_ES_CruiseControl) && (bus == SUBARU_CAM_BUS)) {
120120
bool cruise_engaged = GET_BIT(to_push, 63U);
121121
pcm_cruise_check(cruise_engaged);

0 commit comments

Comments
 (0)