SAFETY: disallowing controls on brake switch as this is the main cancellation bit considered by cruise in pcm
@@ -27,8 +27,8 @@ static void honda_rx_hook(CAN_FIFOMailBox_TypeDef *to_push) {
// exit controls on brake press
if ((to_push->RIR>>21) == 0x17C) {
- // bit 50
- if (to_push->RDHR & 0x200000) {
+ // bit 32 or 53
+ if (to_push->RDHR & 0x200001) {
controls_allowed = 0;
}
}
