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:
Diffstat (limited to 'src/Movement/DDA.cpp')
-rw-r--r--src/Movement/DDA.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Movement/DDA.cpp b/src/Movement/DDA.cpp
index 0eeea2b6..a42ac642 100644
--- a/src/Movement/DDA.cpp
+++ b/src/Movement/DDA.cpp
@@ -161,8 +161,8 @@ void DDA::Init()
bool DDA::Init(const GCodes::RawMove &nextMove, bool doMotorMapping)
{
// 1. Compute the new endpoints and the movement vector
- const int32_t *positionNow = prev->DriveCoordinates();
- const Move *move = reprap.GetMove();
+ const int32_t * const positionNow = prev->DriveCoordinates();
+ const Move * const move = reprap.GetMove();
if (doMotorMapping)
{
move->MotorTransform(nextMove.coords, endPoint); // transform the axis coordinates if on a delta or CoreXY printer