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>2022-11-02 19:23:43 +0300
committerDavid Crocker <dcrocker@eschertech.com>2022-11-02 19:23:43 +0300
commit690c9f12b155eb0027455b1dd4735fdf4be80116 (patch)
tree4431aff651f2fd3c057ce22dcb4b7f1ad9799d4b
parent80eafc547c7bc5f247a9ddbfa4320317f07612cb (diff)
Correction to previous commit
-rw-r--r--src/Movement/DDARing.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Movement/DDARing.cpp b/src/Movement/DDARing.cpp
index ac6d885b..96382faa 100644
--- a/src/Movement/DDARing.cpp
+++ b/src/Movement/DDARing.cpp
@@ -673,6 +673,7 @@ void DDARing::ResetExtruderPositions() noexcept
{
AtomicCriticalSectionLocker lock;
liveCoordinatesValid = false;
+ DDA::DDAState state;
if ( getPointer != addPointer // OK if the ring is neither empty or full
|| (state = addPointer->GetState()) == DDA::DDAState::empty || state == DDA::DDAState::completed // also OK if the ring is not full
)