Skip to content

Commit

Permalink
Remove not-needed cadillac-init
Browse files Browse the repository at this point in the history
  • Loading branch information
rbiasini committed Dec 13, 2019
1 parent f0a5d15 commit 4e9d788
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion board/safety.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ float interpolate(struct lookup_t xy, float x) {
float y0 = xy.y[i];
float dx = xy.x[i+1] - x0;
float dy = xy.y[i+1] - y0;
// dx should not be zero as xy.x is supposed ot be monotonic
// dx should not be zero as xy.x is supposed to be monotonic
if (dx <= 0.) {
dx = 0.0001;
}
Expand Down
7 changes: 1 addition & 6 deletions board/safety/safety_cadillac.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,8 @@ static int cadillac_tx_hook(CAN_FIFOMailBox_TypeDef *to_send) {
return tx;
}

static void cadillac_init(int16_t param) {
UNUSED(param);
controls_allowed = 0;
}

const safety_hooks cadillac_hooks = {
.init = cadillac_init,
.init = nooutput_init,
.rx = cadillac_rx_hook,
.tx = cadillac_tx_hook,
.tx_lin = nooutput_tx_lin_hook,
Expand Down

0 comments on commit 4e9d788

Please sign in to comment.