Skip to content

Commit

Permalink
[1.1.x] Fix planner computation (MarlinFirmware#11709)
Browse files Browse the repository at this point in the history
  • Loading branch information
GMagician authored and thinkyhead committed Sep 3, 2018
1 parent 8193c61 commit 5e0cd14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2574,11 +2574,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;
Expand Down

0 comments on commit 5e0cd14

Please sign in to comment.