diff --git a/Marlin/src/module/probe.cpp b/Marlin/src/module/probe.cpp index b483ff022f..a8c6e32d17 100644 --- a/Marlin/src/module/probe.cpp +++ b/Marlin/src/module/probe.cpp @@ -527,8 +527,9 @@ static float run_z_probe() { // 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