PFW-1386 Clamp Z-axis when homed

This commit is contained in:
Guðni Már Gilbert 2022-08-30 17:32:45 +00:00 committed by D.R.racer
parent fa6e30389a
commit 4a1479b5bc
1 changed files with 1 additions and 0 deletions

View File

@ -2110,6 +2110,7 @@ float raise_z(float delta, bool plan)
if (axis_known_position[Z_AXIS] || z_min_endstop)
{
// current position is known or very low, it's safe to raise Z
clamp_to_software_endstops(current_position);
if(plan) plan_buffer_line_curposXYZE(max_feedrate[Z_AXIS]);
return 0;
}