From 2ec5ffc58279625389232dc5a8b721849b473bda Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 11 Nov 2020 15:56:24 -0600 Subject: [PATCH] Update MarlinCore.cpp --- Marlin/src/MarlinCore.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/Marlin/src/MarlinCore.cpp b/Marlin/src/MarlinCore.cpp index 9704669d61..b3c5892db2 100644 --- a/Marlin/src/MarlinCore.cpp +++ b/Marlin/src/MarlinCore.cpp @@ -993,16 +993,13 @@ void setup() { // Early-disable MAX6675, as it can flood on SPI bus and prevent TMC and others to init correctly // thermalManager.init() called too late to do this - #if HAS_MAX6675 - #if ENABLED(HEATER_0_USES_MAX6675) - SET_OUTPUT(MAX6675_SS_PIN); // Setup CS pin - WRITE(MAX6675_SS_PIN, HIGH); // Disable TT_MAX6675 - #endif - #if ENABLED(HEATER_1_USES_MAX6675) - SET_OUTPUT(MAX6675_SS2_PIN); // Setup CS pin - WRITE(MAX6675_SS2_PIN, HIGH); // Disable TT_MAX6675 - #endif - DELAY_NS(100); // Ensure 100ns delay + #if HEATER_0_USES_MAX6675 + SET_OUTPUT(MAX6675_SS_PIN); // Setup CS pin + WRITE(MAX6675_SS_PIN, HIGH); // Disable TT_MAX6675 + #endif + #if HEATER_1_USES_MAX6675 + SET_OUTPUT(MAX6675_SS2_PIN); // Setup CS pin + WRITE(MAX6675_SS2_PIN, HIGH); // Disable TT_MAX6675 #endif #if HAS_L64XX