Browse Source

Fix BUG set_position_mm

Set postion must have axis and not E_AXIS + active_extruder.
MagoKimbra 7 years ago
parent
commit
a4a9bd8bc9
1 changed files with 1 additions and 7 deletions
  1. 1
    7
      Marlin/planner.h

+ 1
- 7
Marlin/planner.h View File

@@ -348,13 +348,7 @@ class Planner {
348 348
     static void set_position_mm_kinematic(const float position[NUM_AXIS]);
349 349
     static void set_position_mm(const AxisEnum axis, const float &v);
350 350
     static FORCE_INLINE void set_z_position_mm(const float &z) { set_position_mm(Z_AXIS, z); }
351
-    static FORCE_INLINE void set_e_position_mm(const float &e) {
352
-      set_position_mm(AxisEnum(E_AXIS
353
-        #if ENABLED(DISTINCT_E_FACTORS)
354
-          + active_extruder
355
-        #endif
356
-      ), e);
357
-    }
351
+    static FORCE_INLINE void set_e_position_mm(const float &e) { set_position_mm(AxisEnum(E_AXIS), e); }
358 352
 
359 353
     /**
360 354
      * Sync from the stepper positions. (e.g., after an interrupted move)

Loading…
Cancel
Save