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-03-02 19:31:08 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-03-02 19:31:08 +0300
commit6900062f54c9926a90f5162273f4aed1953d1e2a (patch)
tree4ccfada5be2c1cda9dc4385693b808600d0147ab /src/Movement
parent13f1068f39e1eeccfc0fc5326283f1f19b59c571 (diff)
Increment resync count when resyncing due to timeout
Diffstat (limited to 'src/Movement')
-rw-r--r--src/Movement/StepTimer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Movement/StepTimer.cpp b/src/Movement/StepTimer.cpp
index 340db752..c50da6b7 100644
--- a/src/Movement/StepTimer.cpp
+++ b/src/Movement/StepTimer.cpp
@@ -218,6 +218,7 @@ void StepTimer::DisableTimerInterrupt() noexcept
if (syncCount == MaxSyncCount && millis() - whenLastSynced > MinSyncInterval)
{
syncCount = 0;
+ ++numResyncs;
}
return syncCount == MaxSyncCount;
}