chrysler safety: fixed comments

master
Riccardo Biasini 2019-01-06 19:04:03 -08:00
parent c2dfbadee7
commit 37ee289fe6
1 changed files with 1 additions and 4 deletions

View File

@ -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;