Skip to content

Commit

Permalink
don't block
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed Oct 18, 2022
1 parent 56adec9 commit b1ca52f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions board/safety/safety_gm.h
Original file line number Diff line number Diff line change
Expand Up @@ -260,16 +260,13 @@ static int gm_fwd_hook(int bus_num, CANPacket_t *to_fwd) {
int bus_fwd = -1;

if (gm_hw == GM_CAM) {
int addr = GET_ADDR(to_fwd);
if (bus_num == 0) {
bool is_pscm_msg = (addr == 388);
if (!is_pscm_msg) {
bus_fwd = 2;
}
bus_fwd = 2;
}

if (bus_num == 2) {
// block lkas message, forward all others
int addr = GET_ADDR(to_fwd);
bool is_lkas_msg = (addr == 384);
if (!is_lkas_msg) {
bus_fwd = 0;
Expand Down

0 comments on commit b1ca52f

Please sign in to comment.