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/Move.cpp')
-rw-r--r--src/Movement/Move.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Movement/Move.cpp b/src/Movement/Move.cpp
index f32f6cc2..fb72c6a2 100644
--- a/src/Movement/Move.cpp
+++ b/src/Movement/Move.cpp
@@ -762,6 +762,8 @@ bool Move::LoadHeightMapFromFile(FileStore *f, const char *fname, const StringRe
{
zShift = 0.0;
}
+ float minError, maxError;
+ (void)heightMap.GetStatistics(latestMeshDeviation, minError, maxError);
reprap.MoveUpdated();
return err;
}
@@ -1163,9 +1165,10 @@ void Move::SetInitialCalibrationDeviation(const Deviation& d) noexcept
reprap.MoveUpdated();
}
+// Set the mesh deviation. Caller must call MoveUpdated() after calling this. We don't do that here because the caller may change Move in other ways first.
void Move::SetLatestMeshDeviation(const Deviation& d) noexcept
{
- latestMeshDeviation = d; reprap.MoveUpdated();
+ latestMeshDeviation = d;
}
const char *Move::GetCompensationTypeString() const noexcept