Fix calls to ubl.get_z_correction
This commit is contained in:
parent
23618d9cd0
commit
38ed5f5ee9
@ -2469,12 +2469,12 @@ void clean_up_after_endstop_or_probe_move() {
|
|||||||
const float (&pos)[XYZE] = current_position;
|
const float (&pos)[XYZE] = current_position;
|
||||||
#endif
|
#endif
|
||||||
if (planner.leveling_active) {
|
if (planner.leveling_active) {
|
||||||
current_position[Z_AXIS] += ubl.get_z_correction(pos[X_AXIS], pos[Y_AXIS], pos[Z_AXIS]);
|
current_position[Z_AXIS] += ubl.get_z_correction(pos[X_AXIS], pos[Y_AXIS]);
|
||||||
planner.leveling_active = false;
|
planner.leveling_active = false;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
planner.leveling_active = true;
|
planner.leveling_active = true;
|
||||||
current_position[Z_AXIS] -= ubl.get_z_correction(pos[X_AXIS], pos[Y_AXIS], pos[Z_AXIS]);
|
current_position[Z_AXIS] -= ubl.get_z_correction(pos[X_AXIS], pos[Y_AXIS]);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user