Skip to content

Commit 2c41857

Browse files
wavexxleptun
authored andcommitted
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.
1 parent 65e19f6 commit 2c41857

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Firmware/ultralcd.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -6307,8 +6307,10 @@ void lcd_print_stop()
63076307

63086308
lcd_cooldown(); //turns off heaters and fan; goes to status screen.
63096309

6310-
current_position[Z_AXIS] += 10; //lift Z.
6311-
plan_buffer_line_curposXYZE(manual_feedrate[Z_AXIS] / 60);
6310+
if (axis_known_position[Z_AXIS]) {
6311+
current_position[Z_AXIS] += 50; //lift Z.
6312+
plan_buffer_line_curposXYZE(manual_feedrate[Z_AXIS] / 60);
6313+
}
63126314

63136315
if (axis_known_position[X_AXIS] && axis_known_position[Y_AXIS]) //if axis are homed, move to parked position.
63146316
{

0 commit comments

Comments
 (0)