From cdb1728cef3b1a1e618fe81be3768a2d3d748795 Mon Sep 17 00:00:00 2001 From: David Crocker Date: Fri, 21 Jan 2022 22:06:36 +0000 Subject: Fixes for MB6XD --- src/Movement/DDA.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/Movement') 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 -- cgit v1.2.3