Skip to content

Commit

Permalink
obd2 default
Browse files Browse the repository at this point in the history
  • Loading branch information
xx979xx committed Oct 5, 2020
1 parent 1533a11 commit c3c2c6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions panda/board/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,14 @@ void set_safety_mode(uint16_t mode, int16_t param) {
case SAFETY_SILENT:
set_intercept_relay(true);
if (board_has_obd()) {
current_board->set_can_mode(CAN_MODE_NORMAL);
current_board->set_can_mode(CAN_MODE_OBD_CAN2);
}
can_silent = ALL_CAN_SILENT;
break;
case SAFETY_NOOUTPUT:
set_intercept_relay(true);
if (board_has_obd()) {
current_board->set_can_mode(CAN_MODE_NORMAL);
current_board->set_can_mode(CAN_MODE_OBD_CAN2);
}
can_silent = ALL_CAN_LIVE;
break;
Expand All @@ -148,7 +148,7 @@ void set_safety_mode(uint16_t mode, int16_t param) {
set_intercept_relay(true);
heartbeat_counter = 0U;
if (board_has_obd()) {
current_board->set_can_mode(CAN_MODE_NORMAL);
current_board->set_can_mode(CAN_MODE_OBD_CAN2);
}
can_silent = ALL_CAN_LIVE;
break;
Expand Down

0 comments on commit c3c2c6f

Please sign in to comment.