Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix STM32F1 SPI device init, MKS_LCD12864 #19271

6 changes: 5 additions & 1 deletion Marlin/src/HAL/STM32F1/SPI.cpp
Expand Up @@ -710,6 +710,10 @@ static spi_baud_rate determine_baud_rate(spi_dev *dev, uint32_t freq) {
return baud_rates[i];
}

SPIClass SPI(1);
#if SPI_DEVICE == 1
SPIClass SPI(1);
#else
SPIClass SPI(2);
#endif
rhapsodyv marked this conversation as resolved.
Show resolved Hide resolved

#endif // __STM32F1__