diff --git a/Marlin/src/libs/private_spi.h b/Marlin/src/libs/private_spi.h index d124124fd..7998de7be 100644 --- a/Marlin/src/libs/private_spi.h +++ b/Marlin/src/libs/private_spi.h @@ -27,7 +27,7 @@ #include template -class SPI { +class SPIclass { static SoftSPI softSPI; public: FORCE_INLINE static void init() { softSPI.begin(); } @@ -38,7 +38,7 @@ class SPI { // Hardware SPI template<> -class SPI { +class SPIclass { public: FORCE_INLINE static void init() { OUT_WRITE(SCK_PIN, LOW); diff --git a/Marlin/src/module/temperature.cpp b/Marlin/src/module/temperature.cpp index 57eb529f2..5bf392fda 100644 --- a/Marlin/src/module/temperature.cpp +++ b/Marlin/src/module/temperature.cpp @@ -981,7 +981,7 @@ void Temperature::updateTemperaturesFromRawValues() { #ifndef MAX6675_DO_PIN #define MAX6675_DO_PIN MISO_PIN #endif - SPI max6675_spi; + SPIclass max6675_spi; #endif /**