소스 검색

Delta probe height bug solved

teemuatlut 8 년 전
부모
커밋
244f67590e
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6
    0
      Marlin/Marlin_main.cpp

+ 6
- 0
Marlin/Marlin_main.cpp 파일 보기

@@ -1828,6 +1828,9 @@ static void clean_up_after_endstop_or_probe_move() {
1828 1828
 
1829 1829
     float z_dest = LOGICAL_Z_POSITION(z_raise);
1830 1830
     if (zprobe_zoffset < 0) z_dest -= zprobe_zoffset;
1831
+    #if ENABLED(DELTA)
1832
+      z_dest -= home_offset[Z_AXIS];
1833
+    #endif
1831 1834
 
1832 1835
     if (z_dest > current_position[Z_AXIS])
1833 1836
       do_blocking_move_to_z(z_dest);
@@ -2254,6 +2257,9 @@ static void clean_up_after_endstop_or_probe_move() {
2254 2257
       // move down quickly before doing the slow probe
2255 2258
       float z = LOGICAL_Z_POSITION(Z_CLEARANCE_BETWEEN_PROBES);
2256 2259
       if (zprobe_zoffset < 0) z -= zprobe_zoffset;
2260
+      #if ENABLED(DELTA)
2261
+        z -= home_offset[Z_AXIS];
2262
+      #endif
2257 2263
       if (z < current_position[Z_AXIS])
2258 2264
         do_blocking_move_to_z(z, MMM_TO_MMS(Z_PROBE_SPEED_FAST));
2259 2265
 

Loading…
취소
저장