diff --git a/board/safety.h b/board/safety.h index ba5ab832..0a216e5b 100644 --- a/board/safety.h +++ b/board/safety.h @@ -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; } diff --git a/board/safety/safety_cadillac.h b/board/safety/safety_cadillac.h index 62fa3828..ccfa78d3 100644 --- a/board/safety/safety_cadillac.h +++ b/board/safety/safety_cadillac.h @@ -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,