Browse Source

Fix bug in planner.set_position_mm

pull/1/head
Scott Lahteine 7 years ago
parent
commit
5a064d0e94
  1. 2
      Marlin/src/module/planner.cpp

2
Marlin/src/module/planner.cpp

@ -2220,7 +2220,7 @@ void Planner::set_position_mm(const AxisEnum axis, const float &v) {
#if HAS_POSITION_FLOAT #if HAS_POSITION_FLOAT
position_float[axis] = v; position_float[axis] = v;
#endif #endif
stepper.set_position(axis, v); stepper.set_position(axis, position[axis]);
previous_speed[axis] = 0.0; previous_speed[axis] = 0.0;
} }

Loading…
Cancel
Save