summaryrefslogtreecommitdiffstats
path: root/tach_sensor.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'tach_sensor.hpp')
-rw-r--r--tach_sensor.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tach_sensor.hpp b/tach_sensor.hpp
index 0ef2b0a..24ee453 100644
--- a/tach_sensor.hpp
+++ b/tach_sensor.hpp
@@ -1,5 +1,6 @@
#pragma once
+#include <sdbusplus/bus.hpp>
#include "sensor_base.hpp"
@@ -20,9 +21,19 @@ class TachSensor : public Sensor
TachSensor& operator=(TachSensor&&) = delete;
~TachSensor() = default;
+ TachSensor(sdbusplus::bus::bus& bus,
+ const std::string& id,
+ FanEnclosure& fanEnc) : Sensor(id, fanEnc),
+ bus(bus)
+ {
+ // Nothing to do here
+ }
+
bool isPresent();
private:
+ sdbusplus::bus::bus& bus;
+ int64_t tach = 0;
};
OpenPOWER on IntegriCloud