From 3f75c5df7cf2c639dd1ed60c00f1f99cd65e394b Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 21 Aug 2018 07:49:13 -0500 Subject: [PATCH] Fix Homing/UBL Co-Authored-By: smoki3 --- Marlin/planner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/planner.cpp b/Marlin/planner.cpp index 14e578de8..f43dfa5f2 100644 --- a/Marlin/planner.cpp +++ b/Marlin/planner.cpp @@ -2527,12 +2527,12 @@ void Planner::_set_position_mm(const float &a, const float &b, const float &c, c #endif position[A_AXIS] = LROUND(a * axis_steps_per_mm[A_AXIS]); position[B_AXIS] = LROUND(b * axis_steps_per_mm[B_AXIS]); - position[C_AXIS] = LROUND(axis_steps_per_mm[C_AXIS] * (c + + position[C_AXIS] = LROUND(axis_steps_per_mm[C_AXIS] * (c + ( #if !IS_KINEMATIC && ENABLED(AUTO_BED_LEVELING_UBL) leveling_active ? ubl.get_z_correction(a, b) : #endif 0 - )); + ))); position[E_AXIS] = LROUND(e * axis_steps_per_mm[_EINDEX]); #if HAS_POSITION_FLOAT position_float[A_AXIS] = a;