Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2021-10-25 12:32:16 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-10-25 12:32:16 +0300
commit0f18886a6c41efa0806ec161f51e3c6b819e83e1 (patch)
tree021aea515f7dabc2c3ce7a9b393bb69c47692897 /src/Movement
parent46307ab3119a6d969fd5fa65457441d1353bc7ce (diff)
Inlined a function
Diffstat (limited to 'src/Movement')
-rw-r--r--src/Movement/Move.cpp7
-rw-r--r--src/Movement/Move.h7
2 files changed, 7 insertions, 7 deletions
diff --git a/src/Movement/Move.cpp b/src/Movement/Move.cpp
index e5645c72..02c4971b 100644
--- a/src/Movement/Move.cpp
+++ b/src/Movement/Move.cpp
@@ -894,13 +894,6 @@ void Move::GetCurrentUserPosition(float m[MaxAxes], uint8_t moveType, const Tool
}
}
-// Get the accumulated extruder motor steps taken by an extruder since the last call. Used by the filament monitoring code.
-// Returns the number of motor steps moves since the last call, and sets isPrinting true unless we are currently executing an extruding but non-printing move
-int32_t Move::GetAccumulatedExtrusion(size_t drive, bool& isPrinting) noexcept
-{
- return mainDDARing.GetAccumulatedMovement(drive, isPrinting);
-}
-
void Move::SetXYBedProbePoint(size_t index, float x, float y) noexcept
{
if (index >= MaxProbePoints)
diff --git a/src/Movement/Move.h b/src/Movement/Move.h
index ce67c023..08461685 100644
--- a/src/Movement/Move.h
+++ b/src/Movement/Move.h
@@ -343,6 +343,13 @@ inline float Move::GetPressureAdvanceClocks(size_t extruder) const noexcept
return (extruder < MaxExtruders) ? extruderShapers[extruder].GetKclocks() : 0.0;
}
+// Get the accumulated extruder motor steps taken by an extruder since the last call. Used by the filament monitoring code.
+// Returns the number of motor steps moves since the last call, and sets isPrinting true unless we are currently executing an extruding but non-printing move
+inline int32_t Move::GetAccumulatedExtrusion(size_t drive, bool& isPrinting) noexcept
+{
+ return mainDDARing.GetAccumulatedMovement(drive, isPrinting);
+}
+
#if HAS_SMART_DRIVERS
// Get the current step interval for this axis or extruder, or 0 if it is not moving