Browse Source

Fix steps_to_mm for active extruders

MagoKimbra 8 years ago
parent
commit
3685224c1a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/planner.cpp

+ 1
- 1
Marlin/planner.cpp View File

1418
 void Planner::sync_from_steppers() {
1418
 void Planner::sync_from_steppers() {
1419
   LOOP_XYZE(i) position[i] = stepper.position((AxisEnum)i);
1419
   LOOP_XYZE(i) position[i] = stepper.position((AxisEnum)i);
1420
   #if ENABLED(LIN_ADVANCE)
1420
   #if ENABLED(LIN_ADVANCE)
1421
-    LOOP_XYZE(i) position_float[i] = stepper.position((AxisEnum)i) * steps_to_mm[i];
1421
+    LOOP_XYZE(i) position_float[i] = stepper.position((AxisEnum)i) * (i == E_AXIS ? steps_to_mm[E_AXIS + active_extruder] : steps_to_mm[i]);
1422
   #endif
1422
   #endif
1423
 }
1423
 }
1424
 
1424
 

Loading…
Cancel
Save