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
path: root/src/Fans
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2020-04-21 01:31:03 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-04-21 01:31:03 +0300
commit4e346ee4021634068bbd3f95b0aba452bb8c254f (patch)
tree2bebdf79889096c6e56b771020c7fe132923da11 /src/Fans
parentd16be9efe85af602b8d34bd4b42b5bb706168a86 (diff)
Fix to fans change in previous commit
Diffstat (limited to 'src/Fans')
-rw-r--r--src/Fans/LocalFan.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Fans/LocalFan.cpp b/src/Fans/LocalFan.cpp
index cdec0e83..28388c07 100644
--- a/src/Fans/LocalFan.cpp
+++ b/src/Fans/LocalFan.cpp
@@ -74,10 +74,14 @@ void LocalFan::InternalRefresh(bool checkSensors) noexcept
DriverChannelsBitmap driverChannelsMonitored;
#endif
- if (sensorsMonitored.IsEmpty() || !checkSensors)
+ if (sensorsMonitored.IsEmpty())
{
reqVal = val;
}
+ else if (!checkSensors)
+ {
+ reqVal = (lastVal == 0.0) ? 0.0 : val;
+ }
else
{
reqVal = 0.0;