From 5a98c83eef09daf5f59e08c8518827861eb92e21 Mon Sep 17 00:00:00 2001 From: Bob Date: Wed, 27 Nov 2019 09:45:03 +0200 Subject: [PATCH] Use MAX6675 SPI pins for MAX31865 over SPI pins (#16024) --- Marlin/src/module/temperature.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Marlin/src/module/temperature.cpp b/Marlin/src/module/temperature.cpp index 9c9037bd57..daaa008bf9 100644 --- a/Marlin/src/module/temperature.cpp +++ b/Marlin/src/module/temperature.cpp @@ -36,19 +36,19 @@ #if ENABLED(MAX6675_IS_MAX31865) #include "Adafruit_MAX31865.h" #ifndef MAX31865_CS_PIN - #define MAX31865_CS_PIN CS_PIN // HW:49 SW:65 for example + #define MAX31865_CS_PIN MAX6675_SS_PIN // HW:49 SW:65 for example #endif #ifndef MAX31865_MOSI_PIN - #define MAX31865_MOSI_PIN MOSI_PIN // 63 + #define MAX31865_MOSI_PIN MOSI_PIN // 63 #endif #ifndef MAX31865_MISO_PIN - #define MAX31865_MISO_PIN MISO_PIN // 42 + #define MAX31865_MISO_PIN MAX6675_DO_PIN // 42 #endif #ifndef MAX31865_SCK_PIN - #define MAX31865_SCK_PIN SCK_PIN // 40 + #define MAX31865_SCK_PIN MAX6675_SCK_PIN // 40 #endif Adafruit_MAX31865 max31865 = Adafruit_MAX31865(MAX31865_CS_PIN - #if MAX31865_CS_PIN != CS_PIN + #if MAX31865_CS_PIN != MAX6675_SS_PIN , MAX31865_MOSI_PIN // For software SPI also set MOSI/MISO/SCK , MAX31865_MISO_PIN , MAX31865_SCK_PIN