From 9b0885f4f63866f066df91eed475876eae4fc496 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pawe=C5=82=20Stawicki?= <stawel+chealiCharger@gmail.com>
Date: Sun, 8 Jan 2017 17:17:56 +0100
Subject: [PATCH] Allow boards without a thermistor

---
 Marlin/SanityCheck.h | 2 +-
 Marlin/ultralcd.cpp  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Marlin/SanityCheck.h b/Marlin/SanityCheck.h
index 63abf9c7cf..0a36616d15 100644
--- a/Marlin/SanityCheck.h
+++ b/Marlin/SanityCheck.h
@@ -770,7 +770,7 @@ static_assert(1 >= 0
  */
 #if !HAS_HEATER_0
   #error "HEATER_0_PIN not defined for this board."
-#elif !PIN_EXISTS(TEMP_0)
+#elif !PIN_EXISTS(TEMP_0) && !(defined(MAX6675_SS) && MAX6675_SS >= 0)
   #error "TEMP_0_PIN not defined for this board."
 #elif !PIN_EXISTS(E0_STEP) || !PIN_EXISTS(E0_DIR) || !PIN_EXISTS(E0_ENABLE)
   #error "E0_STEP_PIN, E0_DIR_PIN, or E0_ENABLE_PIN not defined for this board."
diff --git a/Marlin/ultralcd.cpp b/Marlin/ultralcd.cpp
index e9c8700b94..a02f81557f 100755
--- a/Marlin/ultralcd.cpp
+++ b/Marlin/ultralcd.cpp
@@ -1564,9 +1564,9 @@ void kill_screen(const char* lcd_msg) {
      */
     void _lcd_level_bed_homing() {
       if (lcdDrawUpdate) lcd_implementation_drawedit(PSTR(MSG_LEVEL_BED_HOMING), NULL);
-      lcdDrawUpdate = LCDVIEW_KEEP_REDRAWING;
       if (axis_homed[X_AXIS] && axis_homed[Y_AXIS] && axis_homed[Z_AXIS])
         lcd_goto_screen(_lcd_level_bed_homing_done);
+      lcdDrawUpdate = LCDVIEW_KEEP_REDRAWING;
     }
 
     /**