Skip to content

Commit

Permalink
Add Panda Code
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettpall committed Jan 27, 2024
1 parent 7b7a918 commit 65a5f12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panda/board/safety/safety_gm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 65a5f12

Please sign in to comment.