Skip to content

Commit

Permalink
test2
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou jielei committed Jan 7, 2025
1 parent 16862f4 commit b9d09d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions board/safety/safety_honda.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ static bool honda_alt_brake_msg = false;
static bool honda_fwd_brake = false;
static bool honda_bosch_long = false;
static bool honda_bosch_radarless = false;
static bool honda_acc_scm_alt = false;
static bool honda_bosch_scm_alt = false;

typedef enum {HONDA_NIDEC, HONDA_BOSCH} HondaHw;
static HondaHw honda_hw = HONDA_NIDEC;
Expand Down Expand Up @@ -92,14 +92,14 @@ static void honda_rx_hook(const CANPacket_t *to_push) {
// Odyssey RC5 japanese type use 0x1a6 for scm_buttons and main_on signal
// But 0x326 also exist. So we need to ignore it.
if (addr == 0x1A6) {
honda_acc_scm_alt = true;
honda_bosch_scm_alt = true;
acc_main_on = GET_BIT(to_push, 47U);
if (!acc_main_on) {
controls_allowed = false;
}
}

if ((addr == 0x326) && (!honda_acc_scm_alt)) {
if ((addr == 0x326) && (!honda_bosch_scm_alt)) {
acc_main_on = GET_BIT(to_push, 28U);
if (!acc_main_on) {
controls_allowed = false;
Expand Down

0 comments on commit b9d09d9

Please sign in to comment.