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