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-01-22 01:06:36 +0300
committerDavid Crocker <dcrocker@eschertech.com>2022-01-22 01:06:36 +0300
commitcdb1728cef3b1a1e618fe81be3768a2d3d748795 (patch)
tree7fc74c23707f5fad628486978c6e5543c080b01c /src/Movement
parent6ac8f4b9209491d8444429c6a56cbc4e992c361a (diff)
Fixes for MB6XD
Diffstat (limited to 'src/Movement')
-rw-r--r--src/Movement/DDA.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Movement/DDA.cpp b/src/Movement/DDA.cpp
index e728f14a..74c4a05f 100644
--- a/src/Movement/DDA.cpp
+++ b/src/Movement/DDA.cpp
@@ -2009,6 +2009,7 @@ void DDA::StepDrivers(Platform& p, uint32_t now) noexcept
}
driversStepping &= p.GetSteppingEnabledDrivers();
+
#ifdef DUET3_MB6XD
if (driversStepping != 0)
{
@@ -2026,6 +2027,12 @@ void DDA::StepDrivers(Platform& p, uint32_t now) noexcept
// Trigger the TC so that it generates a step pulse
STEP_GATE_TC->TC_CHANNEL[STEP_GATE_TC_CHAN].TC_CCR = TC_CCR_SWTRG;
lastStepHighTime = StepTimer::GetTimerTicks();
+
+ // Calculate the next step times
+ for (DriveMovement *dm2 = activeDMs; dm2 != dm; dm2 = dm2->nextDM)
+ {
+ (void)dm2->CalcNextStepTime(*this); // calculate next step times
+ }
}
#else
# if SUPPORT_SLOW_DRIVERS // if supporting slow drivers