Skip to content

Commit

Permalink
enable CAN transcievers outside the set_safety_mode function, which i…
Browse files Browse the repository at this point in the history
…s not related
  • Loading branch information
rbiasini committed Nov 21, 2019
1 parent a7c9874 commit 1662481
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion board/drivers/can.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ void can_init_all(void) {
for (uint8_t i=0U; i < CAN_MAX; i++) {
can_init(i);
}
current_board->enable_can_transcievers(true);
}

void can_flip_buses(uint8_t bus1, uint8_t bus2){
Expand Down
3 changes: 3 additions & 0 deletions board/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,9 @@ int main(void) {
// init to SILENT and can silent
set_safety_mode(SAFETY_SILENT, 0);

// enable CAN TXs
current_board->enable_can_transcievers(true);

#ifndef EON
spi_init();
#endif
Expand Down

0 comments on commit 1662481

Please sign in to comment.