Skip to content

Commit 5aa143e

Browse files
committed
remove useless / harmful modm log level overwrite + debug logs from prescaler
1 parent 2b5b355 commit 5aa143e

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/modm/driver/can/mcp2515_impl.hpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020
#include "mcp2515_options.hpp"
2121
#include <modm/architecture/interface/assert.hpp>
2222

23-
// Set the log level
24-
#undef MODM_LOG_LEVEL
25-
#define MODM_LOG_LEVEL modm::log::DISABLED
26-
2723
// ----------------------------------------------------------------------------
2824

2925
template <typename SPI, typename CS, typename INT>
@@ -42,18 +38,10 @@ modm::Mcp2515<SPI, CS, INT>::initializeWithPrescaler(
4238
static constexpr uint8_t CNF1_idx = 2;
4339
static constexpr uint8_t CNF2_idx = 1;
4440
static constexpr uint8_t CNF3_idx = 0;
45-
46-
MODM_LOG_DEBUG.printf("SJW: %d\nProp: %d\nPS1: %d\nPS2: %d\nprescaler: %d\n",
47-
sjw, prop, ps1, ps2, prescaler);
48-
4941
cnf[CNF1_idx] = ((sjw - 1) << 6) | ((prescaler / 2 - 1) & 0x3f);
50-
5142
cnf[CNF2_idx] = (1 << 7) | ( (ps1 - 1) << 3) | ( (prop - 1) << 0);
52-
5343
cnf[CNF3_idx] = (ps2 - 1);
5444

55-
MODM_LOG_DEBUG.printf("CNF1 %02x, CNF2 %02x, CNF3 %02x\n", cnf[CNF1_idx], cnf[CNF2_idx], cnf[CNF3_idx]);
56-
5745
using namespace mcp2515;
5846

5947
// software reset for the mcp2515, after this the chip is back in the

0 commit comments

Comments
 (0)