diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-10-29 17:35:16 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-10-29 17:35:16 +0300 |
commit | 4d27cc210b6af47b3e99353c67568a157fb484ed (patch) | |
tree | a47106b42bc242bbdbdd2b62ec2c8e2fb019b9a7 /src/Movement | |
parent | 63a6a133c683f12e4a69f4e5fbc694c03e1d8ceb (diff) |
Inlined a function
Diffstat (limited to 'src/Movement')
-rw-r--r-- | src/Movement/DDA.cpp | 7 | ||||
-rw-r--r-- | src/Movement/DDA.h | 7 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/Movement/DDA.cpp b/src/Movement/DDA.cpp index 315a3eec..4f210de6 100644 --- a/src/Movement/DDA.cpp +++ b/src/Movement/DDA.cpp @@ -2303,13 +2303,6 @@ bool DDA::Free() noexcept return flags.hadLookaheadUnderrun; } -// Return the number of net steps already taken in this move by a particular drive -int32_t DDA::GetStepsTaken(size_t drive) const noexcept -{ - const DriveMovement * const dmp = FindDM(drive); - return (dmp != nullptr) ? dmp->GetNetStepsTaken() : 0; -} - void DDA::LimitSpeedAndAcceleration(float maxSpeed, float maxAcceleration) noexcept { if (requestedSpeed > maxSpeed) diff --git a/src/Movement/DDA.h b/src/Movement/DDA.h index 035b8f42..c787b40b 100644 --- a/src/Movement/DDA.h +++ b/src/Movement/DDA.h @@ -439,6 +439,13 @@ inline bool DDA::CanPauseAfter() const noexcept ; } +// Return the number of net steps already taken in this move by a particular drive +inline int32_t DDA::GetStepsTaken(size_t drive) const noexcept +{ + const DriveMovement * const dmp = FindDM(drive); + return (dmp != nullptr) ? dmp->GetNetStepsTaken() : 0; +} + #if SUPPORT_CAN_EXPANSION // Insert a hiccup, returning the amount of time inserted |