Skip to content

Commit e058c84

Browse files
authored
Merge pull request #102 from bringert/master
Don't call SPI.endTransaction() from constructor
2 parents d9adb28 + 2e9b9b8 commit e058c84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcp2515.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ MCP2515::MCP2515(const uint8_t _CS, const uint32_t _SPI_CLOCK, SPIClass * _SPI)
2525
SPICS = _CS;
2626
SPI_CLOCK = _SPI_CLOCK;
2727
pinMode(SPICS, OUTPUT);
28-
endSPI();
28+
digitalWrite(SPICS, HIGH);
2929
}
3030

3131
void MCP2515::startSPI() {

0 commit comments

Comments
 (0)