From 65a5f1234dd2c619883d87f8d48812e36d09af36 Mon Sep 17 00:00:00 2001 From: garrettpall <76917194+garrettpall@users.noreply.github.com> Date: Sat, 27 Jan 2024 15:52:11 -0500 Subject: [PATCH] Add Panda Code --- panda/board/safety/safety_gm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/board/safety/safety_gm.h b/panda/board/safety/safety_gm.h index b2e4f9dbd22302..fe21e4c053afff 100644 --- a/panda/board/safety/safety_gm.h +++ b/panda/board/safety/safety_gm.h @@ -244,7 +244,7 @@ static bool gm_tx_hook(CANPacket_t *to_send) { bool allowed_btn = (button == GM_BTN_CANCEL) && cruise_engaged_prev; // For standard CC, allow spamming of SET / RESUME - if (gm_cc_long || (gm_hw == GM_SDGM)) { + if (gm_cc_long || (gm_hw == GM_SDGM) || (gm_hw == GM_CAM && gm_pcm_cruise)) { allowed_btn |= cruise_engaged_prev && (button == GM_BTN_SET || button == GM_BTN_RESUME || button == GM_BTN_UNPRESS); }