don't block

This commit is contained in:
Shane Smiskol 2022-10-18 11:27:51 -07:00
parent 56adec981d
commit b1ca52f86d
1 changed files with 2 additions and 5 deletions

View File

@ -260,16 +260,13 @@ static int gm_fwd_hook(int bus_num, CANPacket_t *to_fwd) {
int bus_fwd = -1; int bus_fwd = -1;
if (gm_hw == GM_CAM) { if (gm_hw == GM_CAM) {
int addr = GET_ADDR(to_fwd);
if (bus_num == 0) { if (bus_num == 0) {
bool is_pscm_msg = (addr == 388); bus_fwd = 2;
if (!is_pscm_msg) {
bus_fwd = 2;
}
} }
if (bus_num == 2) { if (bus_num == 2) {
// block lkas message, forward all others // block lkas message, forward all others
int addr = GET_ADDR(to_fwd);
bool is_lkas_msg = (addr == 384); bool is_lkas_msg = (addr == 384);
if (!is_lkas_msg) { if (!is_lkas_msg) {
bus_fwd = 0; bus_fwd = 0;