Use RAW_POSITION for MBL in planner.set_position_mm
This commit is contained in:
parent
b183442c61
commit
d8e5af6834
1 changed files with 5 additions and 1 deletions
|
@ -1142,10 +1142,14 @@ void Planner::check_axes_activity() {
|
||||||
#endif // AUTO_BED_LEVELING_FEATURE || MESH_BED_LEVELING
|
#endif // AUTO_BED_LEVELING_FEATURE || MESH_BED_LEVELING
|
||||||
{
|
{
|
||||||
#if ENABLED(MESH_BED_LEVELING)
|
#if ENABLED(MESH_BED_LEVELING)
|
||||||
|
|
||||||
if (mbl.active())
|
if (mbl.active())
|
||||||
z += mbl.get_z(x - home_offset[X_AXIS], y - home_offset[Y_AXIS]);
|
z += mbl.get_z(RAW_X_POSITION(x), RAW_Y_POSITION(y));
|
||||||
|
|
||||||
#elif ENABLED(AUTO_BED_LEVELING_FEATURE)
|
#elif ENABLED(AUTO_BED_LEVELING_FEATURE)
|
||||||
|
|
||||||
apply_rotation_xyz(bed_level_matrix, x, y, z);
|
apply_rotation_xyz(bed_level_matrix, x, y, z);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
long nx = position[X_AXIS] = lround(x * axis_steps_per_mm[X_AXIS]),
|
long nx = position[X_AXIS] = lround(x * axis_steps_per_mm[X_AXIS]),
|
||||||
|
|
Reference in a new issue