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>2021-04-20 10:08:17 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-04-20 10:08:17 +0300
commit844400a39e2f2142cbc3d1428918de0fd25cf0db (patch)
treede696d0272870932d415f3be8e0af9ef060a4b5d /src/Fans
parent3db926aa900541ed770a66c99d14e9d13f4fa5f0 (diff)
Fixed fan settings in resurrect.g
Diffstat (limited to 'src/Fans')
-rw-r--r--src/Fans/Fan.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fans/Fan.cpp b/src/Fans/Fan.cpp
index 9573f0a6..0da37b0f 100644
--- a/src/Fans/Fan.cpp
+++ b/src/Fans/Fan.cpp
@@ -199,7 +199,7 @@ GCodeResult Fan::SetPwm(float speed, const StringRef& reply) noexcept
// Save the settings of this fan if it isn't thermostatic
bool Fan::WriteSettings(FileStore *f, size_t fanNum) const noexcept
{
- if (sensorsMonitored.IsNonEmpty())
+ if (sensorsMonitored.IsEmpty())
{
String<StringLength20> fanCommand;
fanCommand.printf("M106 P%u S%.2f\n", fanNum, (double)val);