This commit is contained in:
Your Name
2024-04-29 19:40:22 -05:00
parent 3fb1bac8f8
commit 1847dc78e3
3 changed files with 18 additions and 4 deletions

View File

@@ -243,6 +243,7 @@ static bool hyundai_canfd_tx_hook(const CANPacket_t *to_send) {
}
// cruise buttons check
// CLEARPILOT - TODO - Allow buttons 1 (accel), 2 (decel), 4 (pause/resume)
if (addr == 0x1cf) {
int button = GET_BYTE(to_send, 2) & 0x7U;
bool is_cancel = (button == HYUNDAI_BTN_CANCEL);