瀏覽代碼

G34 logic / typo fix (#15938)

Evgeny-SPB 5 年之前
父節點
當前提交
7116a8645c
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      Marlin/src/gcode/calibrate/G34_M422.cpp

+ 1
- 1
Marlin/src/gcode/calibrate/G34_M422.cpp 查看文件

@@ -194,7 +194,7 @@ void GcodeSuite::G34() {
194 194
         if (iteration == 0 || i > 0) do_blocking_move_to_z(z_probe);
195 195
 
196 196
         // Probe a Z height for each stepper.
197
-        const float z_probed_height = probe_at_point(z_auto_align_pos[i], raise_after, 0, true);
197
+        const float z_probed_height = probe_at_point(z_auto_align_pos[iprobe], raise_after, 0, true);
198 198
         if (isnan(z_probed_height)) {
199 199
           SERIAL_ECHOLNPGM("Probing failed.");
200 200
           err_break = true;

Loading…
取消
儲存