Replace division in planner with multiplication
This commit is contained in:
1 parent
b921f6b69d
commit
f8b5749235
8 files changed
+53
-35
No files matched your search
+1
-1
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user