Skip to content

Commit 0fdb50c

Browse files
thinkyheaddamicreabox
authored andcommitted
Followup to MarlinFirmware#8705
1 parent 6646fd0 commit 0fdb50c

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
@@ -2341,8 +2341,9 @@ static void clean_up_after_endstop_or_probe_move() {
23412341
// Do a first probe at the fast speed
23422342
if (do_probe_move(-10, Z_PROBE_SPEED_FAST)) return NAN;
23432343

2344+
float first_probe_z = current_position[Z_AXIS];
2345+
23442346
#if ENABLED(DEBUG_LEVELING_FEATURE)
2345-
float first_probe_z = current_position[Z_AXIS];
23462347
if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPAIR("1st Probe Z:", first_probe_z);
23472348
#endif
23482349

0 commit comments

Comments
 (0)