From c812ce5e14cf476526d955edbce2effa9d922902 Mon Sep 17 00:00:00 2001 From: David Crocker Date: Sat, 18 Jan 2020 23:03:39 +0000 Subject: Major refactoring, bug fixes in function evaluation Changed all bitmaps to use the bitmap class from RRFLibraries Fixed bugs in functoin evaluation --- src/Fans/Fan.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/Fans/Fan.h') 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 -- cgit v1.2.3