Skip to content

Commit

Permalink
Fix HAL_STM32 SPI regression (MarlinFirmware#15093)
Browse files Browse the repository at this point in the history
Reference: 0b47558
  • Loading branch information
ktand authored and thinkyhead committed Aug 29, 2019
1 parent f5a1fab commit 7ebfae2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Marlin/src/HAL/HAL_STM32/HAL_spi_STM32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 7ebfae2

Please sign in to comment.