Skip to content

Commit 8385cdd

Browse files
committed
Followup to #8705
1 parent ab51335 commit 8385cdd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Marlin/Marlin_main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2235,8 +2235,9 @@ static void clean_up_after_endstop_or_probe_move() {
22352235
// Do a first probe at the fast speed
22362236
if (do_probe_move(-10, Z_PROBE_SPEED_FAST)) return NAN;
22372237

2238+
float first_probe_z = current_position[Z_AXIS];
2239+
22382240
#if ENABLED(DEBUG_LEVELING_FEATURE)
2239-
float first_probe_z = current_position[Z_AXIS];
22402241
if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPAIR("1st Probe Z:", first_probe_z);
22412242
#endif
22422243

0 commit comments

Comments
 (0)