Skip to content

Commit

Permalink
removed bosch safety forwarding restriction on 29 bit addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
gregjhogan committed Mar 6, 2018
1 parent 5c7ef9e commit d378e4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion board/safety/safety_honda.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ static int honda_fwd_hook(int bus_num, CAN_FIFOMailBox_TypeDef *to_fwd) {
int bus_fwd_num = -1;
if (bosch_hardware && (bus_num == 1 || bus_num == 2)) {
int addr = to_fwd->RIR>>21;
bus_fwd_num = addr != 0xE4 && addr != 0x33D && addr < 0x1000 ? (uint8_t)(~bus_num & 0x3) : -1;
bus_fwd_num = addr != 0xE4 && addr != 0x33D ? (uint8_t)(~bus_num & 0x3) : -1;
}
return bus_fwd_num;
}
Expand Down

0 comments on commit d378e4a

Please sign in to comment.