From 3b187f154fae79d047cf6f02786542cf961befb4 Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Fri, 3 Oct 2025 00:13:20 -0500 Subject: [PATCH] Update safety.h --- panda/board/safety.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/board/safety.h b/panda/board/safety.h index 7eb2661273..9c16bd4341 100644 --- a/panda/board/safety.h +++ b/panda/board/safety.h @@ -88,7 +88,7 @@ int safety_fwd_hook(int bus_num, int addr) { } bool get_longitudinal_allowed(void) { - return controls_allowed && !gas_pressed; + return controls_allowed && !gas_pressed_prev; } // Given a CRC-8 poly, generate a static lookup table to use with a fast CRC-8