Replace division in planner with multiplication

This commit is contained in:
Scott Lahteine committed 2016-07-24 13:27:49 -07:00
1 parent b921f6b69d
commit f8b5749235
8 files changed
+53 -35

No files matched your search

+1 -1
View File
@@ -951,7 +951,7 @@ float Stepper::get_axis_position_mm(AxisEnum axis) {
#else
axis_steps = position(axis);
#endif
return axis_steps / planner.axis_steps_per_mm[axis];
return axis_steps * planner.steps_to_mm[axis];
}
void Stepper::finish_and_disable() {