mirror of https://github.com/noisymime/Arduino.git
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.
This commit is contained in:
parent
e4b255acb9
commit
1e0f968387
|
@ -27,7 +27,7 @@ SPIClass::SPIClass()
|
|||
|
||||
digitalWrite(SCK, LOW);
|
||||
digitalWrite(MOSI, LOW);
|
||||
digitalWrite(SS, LOW);
|
||||
digitalWrite(SS, HIGH);
|
||||
|
||||
SPCR = _BV(SPE) | _BV(MSTR);
|
||||
|
||||
|
|
Loading…
Reference in New Issue