Replace division in planner with multiplication
This commit is contained in:
parent
b921f6b69d
commit
f8b5749235
8 changed files with 53 additions and 35 deletions
|
|
@ -262,7 +262,7 @@ class Stepper {
|
|||
// Triggered position of an axis in mm (not core-savvy)
|
||||
//
|
||||
static FORCE_INLINE float triggered_position_mm(AxisEnum axis) {
|
||||
return endstops_trigsteps[axis] / planner.axis_steps_per_mm[axis];
|
||||
return endstops_trigsteps[axis] * planner.steps_to_mm[axis];
|
||||
}
|
||||
|
||||
#if ENABLED(LIN_ADVANCE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue