浏览代码

🎨 Use pos.set method

Scott Lahteine 2 年前
父节点
当前提交
a59766195c
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2
    4
      Marlin/src/lcd/extui/ui_api.cpp

+ 2
- 4
Marlin/src/lcd/extui/ui_api.cpp 查看文件

@@ -936,12 +936,10 @@ namespace ExtUI {
936 936
           if (x_target != current_position.x || y_target != current_position.y) {
937 937
             // If moving across bed, raise nozzle to safe height over bed
938 938
             feedrate_mm_s = Z_PROBE_FEEDRATE_FAST;
939
-            destination = current_position;
940
-            destination.z = Z_CLEARANCE_BETWEEN_PROBES;
939
+            destination.set(current_position.x, current_position.y, Z_CLEARANCE_BETWEEN_PROBES);
941 940
             prepare_line_to_destination();
942 941
             feedrate_mm_s = XY_PROBE_FEEDRATE;
943
-            destination.x = x_target;
944
-            destination.y = y_target;
942
+            destination.set(x_target, y_target);
945 943
             prepare_line_to_destination();
946 944
           }
947 945
           feedrate_mm_s = Z_PROBE_FEEDRATE_FAST;

正在加载...
取消
保存