Merge pull request #6656 from FHeilmann/fix_fwretract_pos_z_move
Fix FWRetract with positive z-moves during retracted state
This commit is contained in:
commit
056350d9bf
@ -3087,8 +3087,8 @@ static void homeaxis(const AxisEnum axis) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
// If the height hasn't been altered, undo the Z hop
|
// If the height hasn't been lowered, undo the Z hop
|
||||||
if (retract_zlift > 0.01 && hop_height == current_position[Z_AXIS]) {
|
if (retract_zlift > 0.01 && hop_height <= current_position[Z_AXIS]) {
|
||||||
// Pretend current position is higher. Z will lower on the next move
|
// Pretend current position is higher. Z will lower on the next move
|
||||||
current_position[Z_AXIS] += retract_zlift;
|
current_position[Z_AXIS] += retract_zlift;
|
||||||
SYNC_PLAN_POSITION_KINEMATIC();
|
SYNC_PLAN_POSITION_KINEMATIC();
|
||||||
|
Loading…
Reference in New Issue
Block a user