|
@@ -559,7 +559,7 @@ void Planner::check_axes_activity() {
|
559
|
559
|
#if ENABLED(MESH_BED_LEVELING)
|
560
|
560
|
|
561
|
561
|
if (mbl.active())
|
562
|
|
- lz += mbl.get_z(RAW_X_POSITION(lx), RAW_Y_POSITION(ly)) * z_fade_factor;
|
|
562
|
+ lz += mbl.get_z(RAW_X_POSITION(lx), RAW_Y_POSITION(ly), z_fade_factor);
|
563
|
563
|
|
564
|
564
|
#elif ABL_PLANAR
|
565
|
565
|
|
|
@@ -595,7 +595,7 @@ void Planner::check_axes_activity() {
|
595
|
595
|
|
596
|
596
|
if (mbl.active()) {
|
597
|
597
|
#if ENABLED(ENABLE_LEVELING_FADE_HEIGHT)
|
598
|
|
- const float c = mbl.get_z(RAW_X_POSITION(logical[X_AXIS]), RAW_Y_POSITION(logical[Y_AXIS]));
|
|
598
|
+ const float c = mbl.get_z(RAW_X_POSITION(logical[X_AXIS]), RAW_Y_POSITION(logical[Y_AXIS]), 1.0);
|
599
|
599
|
logical[Z_AXIS] = (z_fade_height * (RAW_Z_POSITION(logical[Z_AXIS]) - c)) / (z_fade_height - c);
|
600
|
600
|
#else
|
601
|
601
|
logical[Z_AXIS] -= mbl.get_z(RAW_X_POSITION(logical[X_AXIS]), RAW_Y_POSITION(logical[Y_AXIS]));
|