瀏覽代碼

Use the probe travel height for pre-probe move

Instead of using the home_bump for Z to move close to the bed before doing a slow probe, use the probe travel height.
Scott Lahteine 8 年之前
父節點
當前提交
0729a8f08d
共有 1 個檔案被更改,包括 5 行新增4 行删除
  1. 5
    4
      Marlin/Marlin_main.cpp

+ 5
- 4
Marlin/Marlin_main.cpp 查看文件

@@ -2171,10 +2171,11 @@ static void clean_up_after_endstop_or_probe_move() {
2171 2171
 
2172 2172
     #else
2173 2173
 
2174
-      // move fast, close to the bed
2175
-      float z = LOGICAL_Z_POSITION(home_bump_mm(Z_AXIS));
2176
-      if (zprobe_zoffset < 0) z -= zprobe_zoffset;
2177
-      do_blocking_move_to_z(z, MMM_TO_MMS(Z_PROBE_SPEED_FAST));
2174
+      // If the nozzle is above the travel height then
2175
+      // move down quickly before doing the slow probe
2176
+      float z = LOGICAL_Z_POSITION(Z_PROBE_TRAVEL_HEIGHT);
2177
+      if (z < current_position[Z_AXIS])
2178
+        do_blocking_move_to_z(z, MMM_TO_MMS(Z_PROBE_SPEED_FAST));
2178 2179
 
2179 2180
     #endif
2180 2181
 

Loading…
取消
儲存