瀏覽代碼

Update G34 for non-BLTouch probes (#14380)

BigIronGuru 5 年之前
父節點
當前提交
12d21e642f
共有 1 個檔案被更改,包括 3 行新增9 行删除
  1. 3
    9
      Marlin/src/gcode/calibrate/G34_M422.cpp

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

@@ -38,10 +38,6 @@
38 38
   #include "../../module/probe.h"
39 39
 #endif
40 40
 
41
-#if ENABLED(BLTOUCH)
42
-  #include "../../feature/bltouch.h"
43
-#endif
44
-
45 41
 #if HAS_LEVELING
46 42
   #include "../../feature/bedlevel/bedlevel.h"
47 43
 #endif
@@ -279,11 +275,9 @@ void GcodeSuite::G34() {
279 275
     // After this operation the z position needs correction
280 276
     set_axis_is_not_at_home(Z_AXIS);
281 277
 
282
-    #if BOTH(BLTOUCH, BLTOUCH_HS_MODE)
283
-      // In BLTOUCH HS mode, the pin is still deployed at this point.
284
-      // The upcoming G28 means travel, so it is better to stow the pin.
285
-      bltouch._stow();
286
-    #endif
278
+    // Stow the probe, as the last call to probe_pt(...) left
279
+    // the probe deployed if it was successful.
280
+    STOW_PROBE();
287 281
 
288 282
     // Home Z after the alignment procedure
289 283
     process_subcommands_now_P(PSTR("G28 Z"));

Loading…
取消
儲存