From a4a9bd8bc9cf4b722db06bb3af697a2438d4118f Mon Sep 17 00:00:00 2001 From: MagoKimbra Date: Sat, 11 Mar 2017 14:13:39 +0100 Subject: [PATCH] Fix BUG set_position_mm Set postion must have axis and not E_AXIS + active_extruder. --- Marlin/planner.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Marlin/planner.h b/Marlin/planner.h index c002c9977b..1f16f6a7a7 100644 --- a/Marlin/planner.h +++ b/Marlin/planner.h @@ -348,13 +348,7 @@ class Planner { static void set_position_mm_kinematic(const float position[NUM_AXIS]); static void set_position_mm(const AxisEnum axis, const float &v); static FORCE_INLINE void set_z_position_mm(const float &z) { set_position_mm(Z_AXIS, z); } - static FORCE_INLINE void set_e_position_mm(const float &e) { - set_position_mm(AxisEnum(E_AXIS - #if ENABLED(DISTINCT_E_FACTORS) - + active_extruder - #endif - ), e); - } + static FORCE_INLINE void set_e_position_mm(const float &e) { set_position_mm(AxisEnum(E_AXIS), e); } /** * Sync from the stepper positions. (e.g., after an interrupted move)