From 99a25a480bf5c958b8ddd71b5044451d3c511697 Mon Sep 17 00:00:00 2001 From: Rick Lan Date: Thu, 30 Aug 2018 20:06:28 +1000 Subject: [PATCH] * init acc_addr & acc_vl value --- panda/board/safety/safety_toyota.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panda/board/safety/safety_toyota.h b/panda/board/safety/safety_toyota.h index c1eb1b25b..983d39cf0 100644 --- a/panda/board/safety/safety_toyota.h +++ b/panda/board/safety/safety_toyota.h @@ -30,6 +30,8 @@ uint32_t toyota_ts_last = 0; int toyota_cruise_engaged_last = 0; // cruise state struct sample_t toyota_torque_meas; // last 3 motor torques produced by the eps +uint32_t acc_addr = 0; +uint32_t acc_vl = 0; static void toyota_rx_hook(CAN_FIFOMailBox_TypeDef *to_push) { // get eps motor torque (0.66 factor in dbc)