From 7ebfae27e3659c9862d574f46eba80757ada34ad Mon Sep 17 00:00:00 2001 From: Karl Andersson Date: Fri, 30 Aug 2019 00:00:01 +0200 Subject: [PATCH] Fix HAL_STM32 SPI regression (#15093) Reference: 0b47558 --- Marlin/src/HAL/HAL_STM32/HAL_spi_STM32.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Marlin/src/HAL/HAL_STM32/HAL_spi_STM32.cpp b/Marlin/src/HAL/HAL_STM32/HAL_spi_STM32.cpp index b2e1ebc17559..ca5a131eecbb 100644 --- a/Marlin/src/HAL/HAL_STM32/HAL_spi_STM32.cpp +++ b/Marlin/src/HAL/HAL_STM32/HAL_spi_STM32.cpp @@ -82,12 +82,7 @@ void spiInit(uint8_t spiRate) { clock = 4000000; // Default from the SPI library } spiConfig = SPISettings(clock, MSBFIRST, SPI_MODE0); - #if defined(MISO_PIN) && defined(SDSS) && defined(MOSI_PIN) && defined(SCK_PIN) - SPI.setMISO(MISO_PIN); - SPI.setSSEL(SDSS); - SPI.setMOSI(MOSI_PIN); - SPI.setSCLK(SCK_PIN); - #endif + SPI.begin(); }