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>2021-12-27 20:12:56 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-12-27 20:12:56 +0300
commit4cff4d35d33a91e711693c2ecb5e59b04b09681b (patch)
treef13117fdbe4f6b9996792426312bf6323b8e1919 /src/Tools/Tool.cpp
parent8410c40b4d1d26155f62045038c4140a4e5616b6 (diff)
Replaced < NEARLY_ABS_ZERO by <= NEARLY_ABS_ZERO
Diffstat (limited to 'src/Tools/Tool.cpp')
-rw-r--r--src/Tools/Tool.cpp4
1 files changed, 2 insertions, 2 deletions
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)