Remove not-needed cadillac-init

master
Riccardo 2019-12-12 18:23:03 -08:00
parent f0a5d154cf
commit 4e9d788af7
2 changed files with 2 additions and 7 deletions

View File

@ -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;
}

View File

@ -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,