Skip to content

Commit

Permalink
Honda: reset prev brake switch (commaai#1781)
Browse files Browse the repository at this point in the history
  • Loading branch information
eFiniLan committed Apr 13, 2024
1 parent 841b69c commit fdcbc75
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions board/safety/safety_honda.h
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ static bool honda_tx_hook(const CANPacket_t *to_send) {
static safety_config honda_nidec_init(uint16_t param) {
honda_hw = HONDA_NIDEC;
honda_brake = 0;
honda_brake_switch_prev = false;
honda_fwd_brake = false;
honda_alt_brake_msg = false;
honda_bosch_long = false;
Expand All @@ -367,6 +368,7 @@ static safety_config honda_nidec_init(uint16_t param) {

static safety_config honda_bosch_init(uint16_t param) {
honda_hw = HONDA_BOSCH;
honda_brake_switch_prev = false;
honda_bosch_radarless = GET_FLAG(param, HONDA_PARAM_RADARLESS);
// Checking for alternate brake override from safety parameter
honda_alt_brake_msg = GET_FLAG(param, HONDA_PARAM_ALT_BRAKE);
Expand Down

0 comments on commit fdcbc75

Please sign in to comment.