From 1e0f968387f34c12401dada9e4b27d7123518a6b Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Tue, 3 Aug 2010 16:13:44 +0000 Subject: [PATCH] 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. --- libraries/SPI/SPI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/SPI/SPI.cpp b/libraries/SPI/SPI.cpp index ade6f5f39..a1c73c8d1 100644 --- a/libraries/SPI/SPI.cpp +++ b/libraries/SPI/SPI.cpp @@ -27,7 +27,7 @@ SPIClass::SPIClass() digitalWrite(SCK, LOW); digitalWrite(MOSI, LOW); - digitalWrite(SS, LOW); + digitalWrite(SS, HIGH); SPCR = _BV(SPE) | _BV(MSTR);