Skip to content

Commit

Permalink
Specify bus for ACC state msg
Browse files Browse the repository at this point in the history
  • Loading branch information
csouers committed Dec 28, 2023
1 parent 7f8feaa commit 19585e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion board/safety/safety_honda.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ static void honda_rx_hook(CANPacket_t *to_push) {

// check ACC main state
// 0x326 for all Bosch and some Nidec, 0x1A6 for some Nidec
if ((addr == 0x326) || (addr == 0x1A6)) {
if (((addr == 0x326) && (bus == pt_bus)) || (addr == 0x1A6)) {
acc_main_on = GET_BIT(to_push, ((addr == 0x326) ? 28U : 47U));
if (!acc_main_on) {
controls_allowed = false;
Expand Down

0 comments on commit 19585e8

Please sign in to comment.