Replace division in planner with multiplication
This commit is contained in:
parent
b921f6b69d
commit
f8b5749235
8 changed files with 53 additions and 35 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue