Skip to content

Commit

Permalink
Chrysler safety: better to mention messages we don't want to forward
Browse files Browse the repository at this point in the history
  • Loading branch information
rbiasini authored and legonigel committed Apr 12, 2019
1 parent 236705f commit 38dc4e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions board/safety/safety_chrysler.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ static int chrysler_fwd_hook(int bus_num, CAN_FIFOMailBox_TypeDef *to_fwd) {
if (bus_num == 0 && !chrysler_camera_detected) {
return 2;
}
// forward LKAS_HEARTBIT message from stock camera
if (bus_num == 2 && !chrysler_camera_detected && addr == 0x2d9) {
// forward all messages from camera except LKAS_COMMAND and LKAS_HUD
if (bus_num == 2 && !chrysler_camera_detected && addr != 658 && addr != 678) {
return 0;
}
return -1; // do not forward
Expand Down

0 comments on commit 38dc4e6

Please sign in to comment.