Skip to content

Commit

Permalink
misra fix
Browse files Browse the repository at this point in the history
  • Loading branch information
martinl committed Jul 19, 2023
1 parent d2196b1 commit f1483ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion board/safety/safety_subaru.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ static int subaru_tx_hook(CANPacket_t *to_send) {
}

// steer cmd checks
if (addr == MSG_SUBARU_ES_LKAS && !subaru_forester_2022) {
if ((addr == MSG_SUBARU_ES_LKAS) && !subaru_forester_2022) {
int desired_torque = ((GET_BYTES(to_send, 0, 4) >> 16) & 0x1FFFU);
desired_torque = -1 * to_signed(desired_torque, 13);

Expand Down

0 comments on commit f1483ef

Please sign in to comment.