Skip to content
Snippets Groups Projects
Commit ad6baa5c authored by Scott Lahteine's avatar Scott Lahteine
Browse files

Fix for UBL set_bed_leveling_enabled

parent df2f2461
Branches
Tags
No related merge requests found
......@@ -107,12 +107,12 @@ void set_bed_leveling_enabled(const bool enable/*=true*/) {
const float (&pos)[XYZE] = current_position;
#endif
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;
}
else {
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment