|
@@ -3071,8 +3071,8 @@ static void homeaxis(const AxisEnum axis) {
|
3071
|
3071
|
}
|
3072
|
3072
|
else {
|
3073
|
3073
|
|
3074
|
|
- // If the height hasn't been altered, undo the Z hop
|
3075
|
|
- if (retract_zlift > 0.01 && hop_height == current_position[Z_AXIS]) {
|
|
3074
|
+ // If the height hasn't been lowered, undo the Z hop
|
|
3075
|
+ if (retract_zlift > 0.01 && hop_height <= current_position[Z_AXIS]) {
|
3076
|
3076
|
// Pretend current position is higher. Z will lower on the next move
|
3077
|
3077
|
current_position[Z_AXIS] += retract_zlift;
|
3078
|
3078
|
SYNC_PLAN_POSITION_KINEMATIC();
|