|
@@ -107,12 +107,12 @@ void set_bed_leveling_enabled(const bool enable/*=true*/) {
|
107
|
107
|
const float (&pos)[XYZE] = current_position;
|
108
|
108
|
#endif
|
109
|
109
|
if (planner.leveling_active) {
|
110
|
|
- current_position[Z_AXIS] += ubl.get_z_correction(pos[X_AXIS], pos[Y_AXIS], pos[Z_AXIS]);
|
|
110
|
+ current_position[Z_AXIS] += ubl.get_z_correction(pos[X_AXIS], pos[Y_AXIS]);
|
111
|
111
|
planner.leveling_active = false;
|
112
|
112
|
}
|
113
|
113
|
else {
|
114
|
114
|
planner.leveling_active = true;
|
115
|
|
- current_position[Z_AXIS] -= ubl.get_z_correction(pos[X_AXIS], pos[Y_AXIS], pos[Z_AXIS]);
|
|
115
|
+ current_position[Z_AXIS] -= ubl.get_z_correction(pos[X_AXIS], pos[Y_AXIS]);
|
116
|
116
|
}
|
117
|
117
|
#endif
|
118
|
118
|
|