瀏覽代碼

Safe homing: Raise Z on G28 Z (#17501)

Co-Authored-By: RFBomb <robbery525@gmail.com>
Scott Lahteine 5 年之前
父節點
當前提交
ac7b484703
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      Marlin/src/gcode/calibrate/G28.cpp

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

@@ -329,7 +329,7 @@ void GcodeSuite::G28() {
329 329
         ? (parser.seenval('R') ? parser.value_linear_units() : Z_HOMING_HEIGHT)
330 330
         : 0;
331 331
 
332
-    if (z_homing_height && (doX || doY)) {
332
+    if (z_homing_height && (doX || doY || ENABLED(Z_SAFE_HOMING))) {
333 333
       // Raise Z before homing any other axes and z is not already high enough (never lower z)
334 334
       destination.z = z_homing_height + (TEST(axis_known_position, Z_AXIS) ? 0.0f : current_position.z);
335 335
       if (destination.z > current_position.z) {

Loading…
取消
儲存