mirror of
https://github.com/Seeed-Studio/Seeed_Arduino_CAN.git
synced 2026-07-27 19:55:59 +00:00
Update mcp_can.cpp
This commit is contained in:
@@ -597,6 +597,7 @@ INT8U MCP_CAN::begin(INT8U speedset)
|
|||||||
{
|
{
|
||||||
INT8U res;
|
INT8U res;
|
||||||
|
|
||||||
|
SPI.begin();
|
||||||
res = mcp2515_init(speedset);
|
res = mcp2515_init(speedset);
|
||||||
if (res == MCP2515_OK) return CAN_OK;
|
if (res == MCP2515_OK) return CAN_OK;
|
||||||
else return CAN_FAILINIT;
|
else return CAN_FAILINIT;
|
||||||
|
|||||||
Reference in New Issue
Block a user