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:
-rw-r--r--src/GCodes/GCodes2.cpp2
-rw-r--r--src/Tools/Tool.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/GCodes/GCodes2.cpp b/src/GCodes/GCodes2.cpp
index 38b8af17..e2205c2f 100644
--- a/src/GCodes/GCodes2.cpp
+++ b/src/GCodes/GCodes2.cpp
@@ -1969,7 +1969,7 @@ bool GCodes::HandleMcode(GCodeBuffer& gb, const StringRef& reply) THROWS(GCodeEx
}
else
{
- if (temperature < NEARLY_ABS_ZERO)
+ if (temperature <= NEARLY_ABS_ZERO)
{
heat.SwitchOff(currentHeater);
}
diff --git a/src/Tools/Tool.cpp b/src/Tools/Tool.cpp
index 99903869..8408b458 100644
--- a/src/Tools/Tool.cpp
+++ b/src/Tools/Tool.cpp
@@ -657,7 +657,7 @@ void Tool::SetToolHeaterActiveTemperature(size_t heaterNumber, float temp) THROW
const int8_t heater = heaters[heaterNumber];
const Tool * const currentTool = reprap.GetCurrentTool();
const bool setHeater = (currentTool == nullptr || currentTool == this);
- if (temp < NEARLY_ABS_ZERO) // temperatures close to ABS_ZERO turn off the heater
+ if (temp <= NEARLY_ABS_ZERO) // temperatures close to ABS_ZERO turn off the heater
{
activeTemperatures[heaterNumber] = 0;
if (setHeater)
@@ -688,7 +688,7 @@ void Tool::SetToolHeaterStandbyTemperature(size_t heaterNumber, float temp) THRO
const Tool * const currentTool = reprap.GetCurrentTool();
const Tool * const lastStandbyTool = reprap.GetHeat().GetLastStandbyTool(heater);
const bool setHeater = (currentTool == nullptr || currentTool == this || lastStandbyTool == nullptr || lastStandbyTool == this);
- if (temp < NEARLY_ABS_ZERO) // temperatures close to ABS_ZERO turn off the heater
+ if (temp <= NEARLY_ABS_ZERO) // temperatures close to ABS_ZERO turn off the heater
{
standbyTemperatures[heaterNumber] = 0;
if (setHeater)