Skip to content

Commit

Permalink
gate that with debug
Browse files Browse the repository at this point in the history
  • Loading branch information
geohot committed Apr 12, 2018
1 parent 5516ebf commit fec9758
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions board/drivers/can.h
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,11 @@ void can_rx(uint8_t can_number) {
if (can_autobaud_enabled[bus_number]) {
can_autobaud_enabled[bus_number] = false;
puts(CAN_NAME_FROM_CANIF(CAN));
#ifdef DEBUG
puts(" auto-baud ");
putui(can_speed[bus_number]);
puts(" cbps\n");
#endif
}

can_rx_cnt += 1;
Expand Down

0 comments on commit fec9758

Please sign in to comment.