diff --git a/board/safety/safety_elm327.h b/board/safety/safety_elm327.h index e89783bcca6d44..ae0ce8106cbe7c 100644 --- a/board/safety/safety_elm327.h +++ b/board/safety/safety_elm327.h @@ -1,5 +1,3 @@ -static void elm327_rx_hook(CAN_FIFOMailBox_TypeDef *to_push) {} - static int elm327_tx_hook(CAN_FIFOMailBox_TypeDef *to_send) { //All ELM traffic must appear on CAN0 if(((to_send->RDTR >> 4) & 0xf) != 0) return 0; @@ -27,20 +25,12 @@ static int elm327_tx_lin_hook(int lin_num, uint8_t *data, int len) { return true; } -static void elm327_init(int16_t param) { - controls_allowed = 1; -} - -static int elm327_fwd_hook(int bus_num, CAN_FIFOMailBox_TypeDef *to_fwd) { - return -1; -} - const safety_hooks elm327_hooks = { - .init = elm327_init, - .rx = elm327_rx_hook, + .init = nooutput_init, + .rx = default_rx_hook, .tx = elm327_tx_hook, .tx_lin = elm327_tx_lin_hook, .ignition = default_ign_hook, - .fwd = elm327_fwd_hook, + .fwd = nooutput_fwd_hook, .relay = nooutput_relay_hook, };