瀏覽代碼

[2.0.x] stow bltouch before start homing (#10987)

Giuliano 7 年之前
父節點
當前提交
f1cdfe3dfd
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5
    1
      Marlin/src/gcode/calibrate/G28.cpp

+ 5
- 1
Marlin/src/gcode/calibrate/G28.cpp 查看文件

@@ -39,7 +39,7 @@
39 39
   #include "../../feature/tmc_util.h"
40 40
 #endif
41 41
 
42
-#if HOMING_Z_WITH_PROBE
42
+#if HOMING_Z_WITH_PROBE || ENABLED(BLTOUCH)
43 43
   #include "../../module/probe.h"
44 44
 #endif
45 45
 
@@ -190,6 +190,10 @@ void GcodeSuite::G28(const bool always_home_all) {
190 190
     workspace_plane = PLANE_XY;
191 191
   #endif
192 192
 
193
+  #if ENABLED(BLTOUCH)
194
+    set_bltouch_deployed(false);
195
+  #endif
196
+
193 197
   // Always home with tool 0 active
194 198
   #if HOTENDS > 1
195 199
     #if DISABLED(DELTA) || ENABLED(DELTA_HOME_TO_SAFE_ZONE)

Loading…
取消
儲存