Skip to content

Commit 62f8cbb

Browse files
committed
Do not set SS pin for the Due
Let the Arduino SPI library take care of that
1 parent 1ebce9b commit 62f8cbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

usbhost.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ template< typename SPI_CLK, typename SPI_MOSI, typename SPI_MISO, typename SPI_S
4444
SPI_SS::SetDirWrite();
4545
SPI_SS::Set();
4646
SPI.begin();
47-
SPI.setClockDivider(BOARD_SPI_DEFAULT_SS, 4); // Set speed to 84MHz/4=21MHz - the MAX3421E can handle up to 26MHz
47+
SPI.setClockDivider(4); // Set speed to 84MHz/4=21MHz - the MAX3421E can handle up to 26MHz
4848
}
4949
#else
5050
static void init() {

0 commit comments

Comments
 (0)