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/Fan.h')
-rw-r--r--src/Fans/Fan.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Fans/Fan.h b/src/Fans/Fan.h
index f6552b9d..2e8e9bd2 100644
--- a/src/Fans/Fan.h
+++ b/src/Fans/Fan.h
@@ -45,7 +45,7 @@ public:
int32_t GetRPM() const noexcept;
GCodeResult SetPwm(float speed, const StringRef& reply) noexcept;
- bool HasMonitoredSensors() const noexcept { return sensorsMonitored != 0; }
+ bool HasMonitoredSensors() const noexcept { return sensorsMonitored.IsNonEmpty(); }
const char *GetName() const noexcept { return name.c_str(); }
#if HAS_MASS_STORAGE
@@ -63,9 +63,6 @@ protected:
void SetLastRpm(float rpm) noexcept { lastRpm = rpm; whenLastRpmSet = millis(); }
- size_t GetNumMonitoredSensors() const noexcept;
- int32_t GetMonitoredSensorNumber(size_t index) const noexcept;
-
unsigned int fanNumber;
// Variables that control the fan