Skip to content

Commit

Permalink
mazda cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed May 28, 2020
1 parent 89658d0 commit 08db086
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions board/safety/safety_mazda.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


// CAN msgs we care about
#define MAZDA_LKAS 0x243
#define MAZDA_CRZ_CTRL 0x21c
Expand Down Expand Up @@ -197,14 +195,20 @@ static int mazda_fwd_hook(int bus, CAN_FIFOMailBox_TypeDef *to_fwd) {
if (!(addr == MAZDA_LKAS)) {
bus_fwd = MAZDA_MAIN;
}
}
else {
} else {
bus_fwd = -1;
}
}
return bus_fwd;
}

static void mazda_init(int16_t param) {
UNUSED(param);
controls_allowed = false;
relay_malfunction_reset();
mazda_lkas_on = false;
}

const safety_hooks mazda_hooks = {
.init = nooutput_init,
.rx = mazda_rx_hook,
Expand Down

0 comments on commit 08db086

Please sign in to comment.