Fix MKS Mini and SD card conflct over SPI mode (#12783)
This commit is contained in:
parent
01f75591c6
commit
c4237b529f
|
@ -104,7 +104,7 @@ void spiInit(uint8_t spiRate) {
|
||||||
case SPI_SPEED_6: clock = SPI_CLOCK_DIV64; break;
|
case SPI_SPEED_6: clock = SPI_CLOCK_DIV64; break;
|
||||||
default: clock = SPI_CLOCK_DIV2; // Default from the SPI library
|
default: clock = SPI_CLOCK_DIV2; // Default from the SPI library
|
||||||
}
|
}
|
||||||
spiConfig = SPISettings(clock, MSBFIRST, SPI_MODE3);
|
spiConfig = SPISettings(clock, MSBFIRST, SPI_MODE0);
|
||||||
SPI.begin();
|
SPI.begin();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue