summaryrefslogtreecommitdiffstats
path: root/monitor/fan.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'monitor/fan.hpp')
-rw-r--r--monitor/fan.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/monitor/fan.hpp b/monitor/fan.hpp
index 5a21e31..f22bd9f 100644
--- a/monitor/fan.hpp
+++ b/monitor/fan.hpp
@@ -124,6 +124,16 @@ class Fan
*/
void timerExpired(TachSensor& sensor);
+ /**
+ * @brief Get the name of the fan
+ *
+ * @return - The fan name
+ */
+ inline const std::string& getName() const
+ {
+ return _name;
+ }
+
private:
/**
OpenPOWER on IntegriCloud