|
@@ -3087,8 +3087,8 @@ static void homeaxis(const AxisEnum axis) {
|
3087
|
3087
|
}
|
3088
|
3088
|
else {
|
3089
|
3089
|
|
3090
|
|
- // If the height hasn't been altered, undo the Z hop
|
3091
|
|
- if (retract_zlift > 0.01 && hop_height == current_position[Z_AXIS]) {
|
|
3090
|
+ // If the height hasn't been lowered, undo the Z hop
|
|
3091
|
+ if (retract_zlift > 0.01 && hop_height <= current_position[Z_AXIS]) {
|
3092
|
3092
|
// Pretend current position is higher. Z will lower on the next move
|
3093
|
3093
|
current_position[Z_AXIS] += retract_zlift;
|
3094
|
3094
|
SYNC_PLAN_POSITION_KINEMATIC();
|