更新 panda/board/safety/safety_honda.h
This commit is contained in:
parent
7887a156cb
commit
dca72c7e6b
|
@ -455,8 +455,8 @@ static int honda_nidec_fwd_hook(int bus_num, int addr) {
|
|||
if (bus_num == 2) {
|
||||
// block stock lkas messages and stock acc messages (if OP is doing ACC)
|
||||
bool is_lkas_msg = (addr == 0xE4) || (addr == 0x194) || (addr == 0x33D);
|
||||
bool is_acc_hud_msg = false;
|
||||
bool is_brake_msg = false;
|
||||
bool is_acc_hud_msg = addr == 0x30C;
|
||||
bool is_brake_msg = addr == 0x1FA;
|
||||
bool block_fwd = is_lkas_msg || is_acc_hud_msg || (is_brake_msg && !honda_fwd_brake);
|
||||
if (!block_fwd) {
|
||||
bus_fwd = 0;
|
||||
|
|
Loading…
Reference in New Issue