Skip to content

Commit 9ecc5a8

Browse files
authored
Merge pull request #31 from coddingtonbear/fix_16mhz_50kbps
Fix clock configuration register settings for 16MHz crystal at 50kbps.
2 parents b9aed7f + e05aae8 commit 9ecc5a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mcp2515.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ MCP2515::ERROR MCP2515::setBitrate(const CAN_SPEED canSpeed, CAN_CLOCK canClock)
326326
break;
327327

328328
case (CAN_50KBPS): // 50Kbps
329+
cfg1 = MCP_16MHz_50kBPS_CFG1;
329330
cfg2 = MCP_16MHz_50kBPS_CFG2;
330331
cfg3 = MCP_16MHz_50kBPS_CFG3;
331332
break;

0 commit comments

Comments
 (0)