Skip to content

Commit

Permalink
chrysler safety: fixed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rbiasini committed Jan 7, 2019
1 parent c2dfbad commit 37ee289
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions board/safety/safety_chrysler.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,9 @@ static int chrysler_tx_hook(CAN_FIFOMailBox_TypeDef *to_send) {
}

// FORCE CANCEL: safety check only relevant when spamming the cancel button.
// ensuring that only the cancel button press is sent (VAL 4) when controls are off.
// ensuring that only the cancel button press is sent when controls are off.
// This avoids unintended engagements while still allowing resume spam
// TODO: fix bug preventing the button msg to be fwd'd on bus 2
//if (((to_send->RIR>>21) == 1265) && !controls_allowed && ((to_send->RDTR >> 4) & 0xFF) == 0) {
// if ((to_send->RDLR & 0x7) != 4) return 0;
//}

// 1 allows the message through
return true;
Expand Down

0 comments on commit 37ee289

Please sign in to comment.