浏览代码

Raise Z 5cm after stopping

Check if Z axis has been homed and, if so, raise Z at least 5cm after
stopping so that the steel sheet can be comfortably removed.
Yuri D'Elia 4 年之前
父节点
当前提交
2c41857cb5
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      Firmware/ultralcd.cpp

+ 4 - 2
Firmware/ultralcd.cpp

@@ -6307,8 +6307,10 @@ void lcd_print_stop()
 
     lcd_cooldown(); //turns off heaters and fan; goes to status screen.
 
-    current_position[Z_AXIS] += 10; //lift Z.
-    plan_buffer_line_curposXYZE(manual_feedrate[Z_AXIS] / 60);
+    if (axis_known_position[Z_AXIS]) {
+        current_position[Z_AXIS] += 50; //lift Z.
+        plan_buffer_line_curposXYZE(manual_feedrate[Z_AXIS] / 60);
+    }
 
     if (axis_known_position[X_AXIS] && axis_known_position[Y_AXIS]) //if axis are homed, move to parked position.
     {