Do not set SS pin for the Due

Let the Arduino SPI library take care of that
This commit is contained in:
Kristian Lauszus 2014-03-07 02:19:34 +01:00
parent 1ebce9b877
commit 62f8cbbc25

View file

@ -44,7 +44,7 @@ public:
SPI_SS::SetDirWrite(); SPI_SS::SetDirWrite();
SPI_SS::Set(); SPI_SS::Set();
SPI.begin(); SPI.begin();
SPI.setClockDivider(BOARD_SPI_DEFAULT_SS, 4); // Set speed to 84MHz/4=21MHz - the MAX3421E can handle up to 26MHz SPI.setClockDivider(4); // Set speed to 84MHz/4=21MHz - the MAX3421E can handle up to 26MHz
} }
#else #else
static void init() { static void init() {