From 5e5d08e722676538eb71449cdf67c3cb9cbbe258 Mon Sep 17 00:00:00 2001 From: royjr Date: Fri, 6 Dec 2024 11:53:43 -0500 Subject: [PATCH] better --- board/safety/safety_hyundai_canfd.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/board/safety/safety_hyundai_canfd.h b/board/safety/safety_hyundai_canfd.h index 258a8c6e39..2611125004 100644 --- a/board/safety/safety_hyundai_canfd.h +++ b/board/safety/safety_hyundai_canfd.h @@ -215,9 +215,9 @@ static int hyundai_canfd_fwd_hook(int bus_num, int addr) { // CRUISE_INFO for non-HDA2, we send our own longitudinal commands bool is_scc_msg = ((addr == 0x1a0) && hyundai_longitudinal && !hyundai_canfd_hda2); - bool is_block_fault = (addr == 0x162); + bool is_ccnc_msg = (addr == 0x161) || (addr == 0x162); - bool block_msg = is_lkas_msg || is_lfa_msg || is_lfahda_msg || is_scc_msg || is_block_fault; + bool block_msg = is_lkas_msg || is_lfa_msg || is_lfahda_msg || is_scc_msg || is_ccnc_msg; if (!block_msg) { bus_fwd = 0; } @@ -263,7 +263,8 @@ static safety_config hyundai_canfd_init(uint16_t param) { {0x1A0, 0, 32}, // CRUISE_INFO {0x1CF, 2, 8}, // CRUISE_BUTTON {0x1E0, 0, 16}, // LFAHDA_CLUSTER - {0x162, 0, 32}, // BLOCK_FAULTS + {0x161, 0, 32}, // MSG_161 + {0x162, 0, 32}, // MSG_162 };