Fix BUG set_position_mm

Set postion must have axis and not E_AXIS + active_extruder.
This commit is contained in:
MagoKimbra 2017-03-11 14:13:39 +01:00
parent 6caf0830ae
commit a4a9bd8bc9

View File

@ -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)