From 59e76e5fdf815448d320412d104940bfae21f61a Mon Sep 17 00:00:00 2001 From: Giuliano Zaro <3684609+GMagician@users.noreply.github.com> Date: Mon, 3 Sep 2018 07:29:29 +0200 Subject: [PATCH] [2.0.x] Fix planner computation (#11708) Fix #11697 --- 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 19b985cbf5..43f7a40a41 100644 --- a/Marlin/src/module/planner.cpp +++ b/Marlin/src/module/planner.cpp @@ -2593,11 +2593,11 @@ void Planner::set_position_mm(const AxisEnum axis, const float &v) { #else const uint8_t axis_index = axis; #endif - position[axis] = LROUND(axis_steps_per_mm[axis_index] * (v + + position[axis] = LROUND(axis_steps_per_mm[axis_index] * (v + ( #if ENABLED(AUTO_BED_LEVELING_UBL) axis == Z_AXIS && leveling_active ? ubl.get_z_correction(current_position[X_AXIS], current_position[Y_AXIS]) : #endif - 0 + 0) )); #if HAS_POSITION_FLOAT position_float[axis] = v;