mirror of https://github.com/commaai/panda.git
comments
This commit is contained in:
parent
55681c1965
commit
57122bb471
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue