From fbf13904540596b9ec96f3c8c1a5cb977e7a4d54 Mon Sep 17 00:00:00 2001 From: Riccardo Date: Fri, 26 Jan 2018 00:35:33 -0800 Subject: [PATCH] Toyota Safety: fix in input param --- board/safety/safety_toyota.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/board/safety/safety_toyota.h b/board/safety/safety_toyota.h index b99965e98621b7..9ddaf172bb47ee 100644 --- a/board/safety/safety_toyota.h +++ b/board/safety/safety_toyota.h @@ -155,9 +155,10 @@ static int toyota_tx_lin_hook(int lin_num, uint8_t *data, int len) { return true; } -static void toyota_init(int16_t dbc_eps_torque_factor) { +static void toyota_init(int16_t param) { controls_allowed = 0; actuation_limits = 1; + dbc_eps_torque_factor = param; } const safety_hooks toyota_hooks = { @@ -167,9 +168,10 @@ const safety_hooks toyota_hooks = { .tx_lin = toyota_tx_lin_hook, }; -static void toyota_nolimits_init(int16_t dbc_eps_torque_factor) { +static void toyota_nolimits_init(int16_t param) { controls_allowed = 0; actuation_limits = 0; + dbc_eps_torque_factor = param; } const safety_hooks toyota_nolimits_hooks = {