This commit is contained in:
Your Name
2024-05-20 23:05:08 -05:00
parent c22143d2cd
commit cc9e3d6827

View File

@@ -440,11 +440,15 @@ static int hyundai_canfd_fwd_hook(int bus_num, int addr) {
// HUD icons // HUD icons
bool is_lfahda_msg = ((addr == 0x1e0) && !hyundai_canfd_hda2); bool is_lfahda_msg = ((addr == 0x1e0) && !hyundai_canfd_hda2);
// Cruise Alt Buttons
bool is_cruise_alt_buttons = (addr == 0x1aa); // && hyundai_canfd_hda2);
// CRUISE_INFO for non-HDA2, we send our own longitudinal commands // CRUISE_INFO for non-HDA2, we send our own longitudinal commands
bool is_scc_msg = ((addr == 0x1a0) && hyundai_longitudinal && !hyundai_canfd_hda2); bool is_scc_msg = ((addr == 0x1a0) && hyundai_longitudinal && !hyundai_canfd_hda2);
bool block_msg = is_lkas_msg || is_lfa_msg || is_lfahda_msg || is_scc_msg; bool block_msg = is_lkas_msg || is_lfa_msg || is_lfahda_msg || is_scc_msg
if (!block_msg || true) { || is_cruise_alt_buttons;
if (!block_msg) {
bus_fwd = 0; bus_fwd = 0;
} }
} }