소스 검색

🎨 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;

Loading…
취소
저장