summaryrefslogtreecommitdiffstats
path: root/monitor/tach_sensor.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'monitor/tach_sensor.hpp')
-rw-r--r--monitor/tach_sensor.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/monitor/tach_sensor.hpp b/monitor/tach_sensor.hpp
index 84e02fe..d564f73 100644
--- a/monitor/tach_sensor.hpp
+++ b/monitor/tach_sensor.hpp
@@ -111,6 +111,14 @@ class TachSensor
*/
std::chrono::microseconds getTimeout();
+ /**
+ * Returns the sensor name
+ */
+ inline const std::string& name() const
+ {
+ return _name;
+ };
+
private:
/**
OpenPOWER on IntegriCloud