From a1a6bc000c6fabe242234a291e7c6d591735791c Mon Sep 17 00:00:00 2001 From: Cameron Clough Date: Tue, 28 Dec 2021 21:40:29 +0000 Subject: [PATCH] Ford: fix cruise state for engaged --- board/safety/safety_ford.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/safety/safety_ford.h b/board/safety/safety_ford.h index 56bc8d085c6..c05c824f375 100644 --- a/board/safety/safety_ford.h +++ b/board/safety/safety_ford.h @@ -93,7 +93,7 @@ static int ford_rx_hook(CANPacket_t *to_push) { // Signal: CcStat_D_Actl unsigned int cruise_state = (GET_BYTE(to_push, 1) & 0x07U); - bool cruise_engaged = (cruise_state == 0U) || (cruise_state == 3U); + bool cruise_engaged = cruise_state == 5U; // Enter controls on rising edge of stock ACC, exit controls if stock ACC disengages if (cruise_engaged && !cruise_engaged_prev) {