Browse Source

Merge pull request #5840 from MagoKimbra/rc_fix_lin_advanced_step_to_mm

Fix steps_to_mm for active extruders
pull/1/head
Scott Lahteine 8 years ago
committed by GitHub
parent
commit
dd02dba6e6
  1. 2
      Marlin/planner.cpp

2
Marlin/planner.cpp

@ -1418,7 +1418,7 @@ void Planner::set_position_mm_kinematic(const float position[NUM_AXIS]) {
void Planner::sync_from_steppers() { void Planner::sync_from_steppers() {
LOOP_XYZE(i) position[i] = stepper.position((AxisEnum)i); LOOP_XYZE(i) position[i] = stepper.position((AxisEnum)i);
#if ENABLED(LIN_ADVANCE) #if ENABLED(LIN_ADVANCE)
LOOP_XYZE(i) position_float[i] = stepper.position((AxisEnum)i) * steps_to_mm[i]; LOOP_XYZE(i) position_float[i] = stepper.position((AxisEnum)i) * (i == E_AXIS ? steps_to_mm[E_AXIS + active_extruder] : steps_to_mm[i]);
#endif #endif
} }

Loading…
Cancel
Save