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>2020-11-09 22:32:06 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-11-09 22:32:06 +0300
commit1a21482fec82f6f40c14384def139a2f0f0b786a (patch)
tree39065c017c9b873675ecd4e554df072dfd19e64d /src/GCodes/GCodeFileInfo.cpp
parent4d431775e3a5bb29b0f4e0e118678e8f3eb19eeb (diff)
Bug fixes, mostly to new heater tuning
Diffstat (limited to 'src/GCodes/GCodeFileInfo.cpp')
-rw-r--r--src/GCodes/GCodeFileInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GCodes/GCodeFileInfo.cpp b/src/GCodes/GCodeFileInfo.cpp
index 4242a786..66279251 100644
--- a/src/GCodes/GCodeFileInfo.cpp
+++ b/src/GCodes/GCodeFileInfo.cpp
@@ -31,7 +31,7 @@ unsigned int GCodeFileInfo::GetNumLayers() const noexcept
const float nl = (firstLayerHeight > 0.0)
? (objectHeight - firstLayerHeight)/layerHeight + 1
: objectHeight/layerHeight;
- return rintf(max<float>(nl, 0.0));
+ return (unsigned int)lrintf(max<float>(nl, 0.0));
}
// End