From db306507311862946a966e006a626dfc28f69ad6 Mon Sep 17 00:00:00 2001 From: Kevin Date: Thu, 16 Aug 2018 15:28:40 +0200 Subject: [PATCH] Fix UBL/Homing (#11566) --- Marlin/src/module/planner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/src/module/planner.cpp b/Marlin/src/module/planner.cpp index f673b656a..19b985cbf 100644 --- a/Marlin/src/module/planner.cpp +++ b/Marlin/src/module/planner.cpp @@ -2546,11 +2546,11 @@ 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 + 0) )); position[E_AXIS] = LROUND(e * axis_steps_per_mm[_EINDEX]); #if HAS_POSITION_FLOAT