From 5266a4028792d75bd33cd8e489ece8c62c64f2c4 Mon Sep 17 00:00:00 2001 From: Arne Schwarck Date: Wed, 2 Oct 2019 20:40:38 +0200 Subject: [PATCH] Fix typo (#286) --- board/safety/safety_gm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/safety/safety_gm.h b/board/safety/safety_gm.h index 3cef579249f5d0..ed8217fc025c86 100644 --- a/board/safety/safety_gm.h +++ b/board/safety/safety_gm.h @@ -204,7 +204,7 @@ static int gm_tx_hook(CAN_FIFOMailBox_TypeDef *to_send) { // GAS/REGEN: safety check if (addr == 715) { int gas_regen = ((GET_BYTE(to_send, 2) & 0x7FU) << 5) + ((GET_BYTE(to_send, 3) & 0xF8U) >> 3); - // Disabled message is !engaed with gas + // Disabled message is !engaged with gas // value that corresponds to max regen. if (!current_controls_allowed || !long_controls_allowed) { bool apply = GET_BYTE(to_send, 0) & 1U;