From 4235b583faf8b491211ea29d5e27c509b1c38b95 Mon Sep 17 00:00:00 2001 From: Eran Date: Mon, 4 Nov 2024 15:03:18 -0700 Subject: [PATCH] Panda Fix 3 --- board/safety/safety_hyundai_canfd.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/board/safety/safety_hyundai_canfd.h b/board/safety/safety_hyundai_canfd.h index 73d26fb7e0..23fc045a40 100644 --- a/board/safety/safety_hyundai_canfd.h +++ b/board/safety/safety_hyundai_canfd.h @@ -255,8 +255,7 @@ static bool hyundai_canfd_tx_hook(const CANPacket_t *to_send) { // 2m/s margin if ((hyundai_canfd_front_left_vego < (11.f + 2.f)) || (hyundai_canfd_rear_right_vego < (11.f + 2.f))) { - bool violation = false; - + if (steer_torque_cmd_checks(desired_torque, HYUNDAI_CANFD_STEERING_LIMITS)) { tx = false; }