From 385bd8a4a31837fb463d738acbd4fa5678fd1103 Mon Sep 17 00:00:00 2001
From: esenapaj <creation0004@gmail.com>
Date: Thu, 13 Oct 2016 16:03:20 +0900
Subject: [PATCH] Fix freezing and MINTEMP Error with MAX31855 thermocouple

---
 Marlin/Marlin_main.cpp |  4 +++-
 Marlin/temperature.cpp | 13 +++++--------
 2 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp
index fac96a805e..d3656a3c38 100755
--- a/Marlin/Marlin_main.cpp
+++ b/Marlin/Marlin_main.cpp
@@ -9737,7 +9737,9 @@ void setup() {
       safe_delay(BOOTSCREEN_TIMEOUT);
     #elif ENABLED(ULTRA_LCD)
       bootscreen();
-      lcd_init();
+      #if DISABLED(SDSUPPORT)
+        lcd_init();
+      #endif
     #endif
   #endif
 
diff --git a/Marlin/temperature.cpp b/Marlin/temperature.cpp
index 846557279c..731dae9c75 100644
--- a/Marlin/temperature.cpp
+++ b/Marlin/temperature.cpp
@@ -1001,14 +1001,11 @@ void Temperature::init() {
 
   #if ENABLED(HEATER_0_USES_MAX6675)
 
-    #if DISABLED(SDSUPPORT)
-      OUT_WRITE(SCK_PIN, LOW);
-      OUT_WRITE(MOSI_PIN, HIGH);
-      SET_INPUT(MISO_PIN);
-      WRITE(MISO_PIN,1);
-    #else
-      OUT_WRITE(SS_PIN, HIGH);
-    #endif
+    OUT_WRITE(SCK_PIN, LOW);
+    OUT_WRITE(MOSI_PIN, HIGH);
+    SET_INPUT(MISO_PIN);
+    WRITE(MISO_PIN, HIGH);
+    OUT_WRITE(SS_PIN, HIGH);
 
     OUT_WRITE(MAX6675_SS, HIGH);