diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-03-02 19:31:08 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-03-02 19:31:08 +0300 |
commit | 6900062f54c9926a90f5162273f4aed1953d1e2a (patch) | |
tree | 4ccfada5be2c1cda9dc4385693b808600d0147ab /src/Movement | |
parent | 13f1068f39e1eeccfc0fc5326283f1f19b59c571 (diff) |
Increment resync count when resyncing due to timeout
Diffstat (limited to 'src/Movement')
-rw-r--r-- | src/Movement/StepTimer.cpp | 1 |
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; } |