Skip to content

Commit

Permalink
Subaru: 545 msg must be generated
Browse files Browse the repository at this point in the history
  • Loading branch information
geohot committed Apr 15, 2019
1 parent 9159df9 commit 64bcc89
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions board/safety/safety_subaru.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ static int subaru_fwd_hook(int bus_num, CAN_FIFOMailBox_TypeDef *to_fwd) {

// forward CAN 0 > 1
if (bus_num == 0) {

return 2; // ES CAN
}
// forward CAN 1 > 0, except ES_LKAS
Expand All @@ -118,6 +119,10 @@ static int subaru_fwd_hook(int bus_num, CAN_FIFOMailBox_TypeDef *to_fwd) {
if (addr == 0x122) {
return -1;
}
// ES Distance
if (addr == 545) {
return -1;
}

return 0; // Main CAN
}
Expand Down

0 comments on commit 64bcc89

Please sign in to comment.