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-02-17 17:48:13 +0300
committerDavid Crocker <dcrocker@eschertech.com>2022-02-17 17:48:13 +0300
commit63f3d0b723ee819191e55a3712e787c24bf66755 (patch)
tree22753b15232d81f4862ff03e0fa619f0fa07229d /src/Movement
parent4197b60ab476b6cd615b59bcf5ea580ad85ab268 (diff)
Fixes for homing CAN drives when the endstop switch is already triggered
Diffstat (limited to 'src/Movement')
-rw-r--r--src/Movement/DDA.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Movement/DDA.cpp b/src/Movement/DDA.cpp
index 880f02f5..f0adb8ac 100644
--- a/src/Movement/DDA.cpp
+++ b/src/Movement/DDA.cpp
@@ -1624,7 +1624,7 @@ void DDA::Prepare(SimulationMode simMode) noexcept
}
#if SUPPORT_CAN_EXPANSION
- const uint32_t canClocksNeeded = CanMotion::FinishMovement(afterPrepare.moveStartTime, simMode != SimulationMode::off, flags.checkEndstops);
+ const uint32_t canClocksNeeded = CanMotion::FinishMovement(*this, afterPrepare.moveStartTime, simMode != SimulationMode::off);
if (canClocksNeeded > clocksNeeded)
{
// Due to rounding error in the calculations, we quite often calculate the CAN move as being longer than our previously-calculated value, normally by just one clock.