From 7116a8645ce6a01ec3bb1f19635e02e24d9611d6 Mon Sep 17 00:00:00 2001 From: Evgeny-SPB Date: Wed, 20 Nov 2019 08:25:07 +0300 Subject: [PATCH] G34 logic / typo fix (#15938) --- Marlin/src/gcode/calibrate/G34_M422.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/gcode/calibrate/G34_M422.cpp b/Marlin/src/gcode/calibrate/G34_M422.cpp index 7f1d086d45..d74a9ce5da 100644 --- a/Marlin/src/gcode/calibrate/G34_M422.cpp +++ b/Marlin/src/gcode/calibrate/G34_M422.cpp @@ -194,7 +194,7 @@ void GcodeSuite::G34() { if (iteration == 0 || i > 0) do_blocking_move_to_z(z_probe); // Probe a Z height for each stepper. - const float z_probed_height = probe_at_point(z_auto_align_pos[i], raise_after, 0, true); + const float z_probed_height = probe_at_point(z_auto_align_pos[iprobe], raise_after, 0, true); if (isnan(z_probed_height)) { SERIAL_ECHOLNPGM("Probing failed."); err_break = true;