Skip to content

Commit

Permalink
Don't call SPI.endTransaction() from constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
bringert committed Dec 5, 2023
1 parent d9adb28 commit 2e9b9b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mcp2515.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ MCP2515::MCP2515(const uint8_t _CS, const uint32_t _SPI_CLOCK, SPIClass * _SPI)
SPICS = _CS;
SPI_CLOCK = _SPI_CLOCK;
pinMode(SPICS, OUTPUT);
endSPI();
digitalWrite(SPICS, HIGH);
}

void MCP2515::startSPI() {
Expand Down

0 comments on commit 2e9b9b8

Please sign in to comment.