From 8385cddd8d81c8aa78fcec5cbb42e1c630a54b39 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 8 Dec 2017 03:48:24 -0600 Subject: [PATCH] Followup to #8705 --- Marlin/Marlin_main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 2bddfa24e..d693b57a3 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -2235,8 +2235,9 @@ static void clean_up_after_endstop_or_probe_move() { // Do a first probe at the fast speed if (do_probe_move(-10, Z_PROBE_SPEED_FAST)) return NAN; + float first_probe_z = current_position[Z_AXIS]; + #if ENABLED(DEBUG_LEVELING_FEATURE) - float first_probe_z = current_position[Z_AXIS]; if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPAIR("1st Probe Z:", first_probe_z); #endif