From 4e9d788af7d1e05ff4ef9cdba6e308e1b1ccc700 Mon Sep 17 00:00:00 2001 From: Riccardo Date: Thu, 12 Dec 2019 18:23:03 -0800 Subject: [PATCH] Remove not-needed cadillac-init --- board/safety.h | 2 +- board/safety/safety_cadillac.h | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/board/safety.h b/board/safety.h index ba5ab83215b5d6..0a216e5b1f6204 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 62fa3828909997..ccfa78d3f76b8b 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,