From 6559f7359f90d7fd7a72186b881b6c5f90cf3025 Mon Sep 17 00:00:00 2001
From: Scott Lahteine <sourcetree@thinkyhead.com>
Date: Wed, 6 Jul 2016 16:21:51 -0700
Subject: [PATCH] Fix comment on Z raise for homing, save a few bytes

---
 Marlin/Marlin_main.cpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp
index 37ccd983c8..d7afc03553 100644
--- a/Marlin/Marlin_main.cpp
+++ b/Marlin/Marlin_main.cpp
@@ -2916,11 +2916,11 @@ inline void gcode_G28() {
 
     #elif defined(MIN_Z_HEIGHT_FOR_HOMING) && MIN_Z_HEIGHT_FOR_HOMING > 0
 
-      // Raise Z before homing any other axes and z is not already high enough (never lower z)
-      float z_dest = (current_position[Z_AXIS] += MIN_Z_HEIGHT_FOR_HOMING);
+      // Raise Z before homing, if specified
+      destination[Z_AXIS] = (current_position[Z_AXIS] += MIN_Z_HEIGHT_FOR_HOMING);
       #if ENABLED(DEBUG_LEVELING_FEATURE)
         if (DEBUGGING(LEVELING)) {
-          SERIAL_ECHOPAIR("Raise Z (before homing) to ", z_dest);
+          SERIAL_ECHOPAIR("Raise Z (before homing) to ", destination[Z_AXIS]);
           SERIAL_EOL;
         }
       #endif
@@ -2928,9 +2928,9 @@ inline void gcode_G28() {
       feedrate = homing_feedrate[Z_AXIS];
 
       #if HAS_BED_PROBE
-        do_blocking_move_to_z(z_dest);
+        do_blocking_move_to_z(destination[Z_AXIS]);
       #else
-        line_to_z(z_dest);
+        line_to_z(destination[Z_AXIS]);
         stepper.synchronize();
       #endif