Skip to content

Commit

Permalink
tesla doesn't need a special LIN hook
Browse files Browse the repository at this point in the history
  • Loading branch information
geohot committed May 23, 2019
1 parent 1d24677 commit 6b282f1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions board/safety/safety_tesla.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,6 @@ static int tesla_tx_hook(CAN_FIFOMailBox_TypeDef *to_send)
return true;
}

static int tesla_tx_lin_hook(int lin_num, uint8_t *data, int len)
{
// LIN is not used on the Tesla
return false;
}

static void tesla_init(int16_t param)
{
controls_allowed = 0;
Expand Down Expand Up @@ -284,7 +278,7 @@ const safety_hooks tesla_hooks = {
.init = tesla_init,
.rx = tesla_rx_hook,
.tx = tesla_tx_hook,
.tx_lin = tesla_tx_lin_hook,
.tx_lin = nooutput_tx_lin_hook,
.ignition = tesla_ign_hook,
.fwd = tesla_fwd_hook,
.relay = nooutput_relay_hook,
Expand Down

0 comments on commit 6b282f1

Please sign in to comment.