From ce04b518cc8ff3c60834d2b7a667c1a8d7814488 Mon Sep 17 00:00:00 2001 From: PavelSindler Date: Thu, 19 Oct 2017 17:21:56 +0200 Subject: [PATCH] plan_set_z_position updated --- Firmware/planner.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Firmware/planner.cpp b/Firmware/planner.cpp index c5a8f5b2f..7dd79903a 100644 --- a/Firmware/planner.cpp +++ b/Firmware/planner.cpp @@ -1288,6 +1288,9 @@ void plan_set_position(float x, float y, float z, const float &e) // Only useful in the bed leveling routine, when the mesh bed leveling is off. void plan_set_z_position(const float &z) { + #ifdef LIN_ADVANCE + position_float[Z_AXIS] = z; + #endif position[Z_AXIS] = lround(z*axis_steps_per_unit[Z_AXIS]); st_set_position(position[X_AXIS], position[Y_AXIS], position[Z_AXIS], position[E_AXIS]); }