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:
Diffstat (limited to 'src/Fans/LocalFan.cpp')
-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 c8205b21..691fc78d 100644
--- a/src/Fans/LocalFan.cpp
+++ b/src/Fans/LocalFan.cpp
@@ -87,7 +87,11 @@ void LocalFan::InternalRefresh(bool checkSensors) noexcept
([&reqVal, bangBangMode, this](unsigned int sensorNum, unsigned int) noexcept
{
const auto sensor = reprap.GetHeat().FindSensor(sensorNum);
- if (sensor.IsNotNull())
+ if (sensor.IsNull())
+ {
+ reqVal = maxVal; // sensor not found, so turn the fan fully on
+ }
+ else
{
//TODO we used to turn the fan on if the associated heater was being tuned
float ht;