This commit is contained in:
Shane Smiskol 2023-11-10 23:49:29 -08:00
parent 55681c1965
commit 57122bb471
1 changed files with 2 additions and 0 deletions

View File

@ -82,6 +82,8 @@ int safety_fwd_hook(int bus_num, int addr) {
}
bool get_longitudinal_allowed(void) {
// Gas and brake are allowed if not overriding with gas.
// No longitudinal control when overriding with gas.
return controls_allowed && !gas_pressed_prev;
}