Browse Source

Fix MKS Mini and SD card conflct over SPI mode (#12783)

jmz52 6 years ago
parent
commit
c4237b529f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/HAL/HAL_STM32F1/HAL_spi_STM32F1.cpp

+ 1
- 1
Marlin/src/HAL/HAL_STM32F1/HAL_spi_STM32F1.cpp View File

104
     case SPI_SPEED_6:       clock = SPI_CLOCK_DIV64; break;
104
     case SPI_SPEED_6:       clock = SPI_CLOCK_DIV64; break;
105
     default:                clock = SPI_CLOCK_DIV2; // Default from the SPI library
105
     default:                clock = SPI_CLOCK_DIV2; // Default from the SPI library
106
   }
106
   }
107
-  spiConfig = SPISettings(clock, MSBFIRST, SPI_MODE3);
107
+  spiConfig = SPISettings(clock, MSBFIRST, SPI_MODE0);
108
   SPI.begin();
108
   SPI.begin();
109
 }
109
 }
110
 
110
 

Loading…
Cancel
Save