Skip to content

Commit 1e0f968

Browse files
committed
Setting SS high by default.
This should prevent conflicts between an SPI device using the hardware SS pin (which previously would have been enabled by default) and another SPI device using another pin for its SS. It might be better to move the SPI initialization to begin(), which could then be called by the hardware devices which could then disable themselves.
1 parent e4b255a commit 1e0f968

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/SPI/SPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ SPIClass::SPIClass()
2727

2828
digitalWrite(SCK, LOW);
2929
digitalWrite(MOSI, LOW);
30-
digitalWrite(SS, LOW);
30+
digitalWrite(SS, HIGH);
3131

3232
SPCR = _BV(SPE) | _BV(MSTR);
3333

0 commit comments

Comments
 (0)