Skip to content

Commit

Permalink
Toyota Safety: fix in input param
Browse files Browse the repository at this point in the history
  • Loading branch information
rbiasini committed Jan 26, 2018
1 parent 6c01d09 commit fbf1390
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions board/safety/safety_toyota.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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 = {
Expand Down

0 comments on commit fbf1390

Please sign in to comment.