Follow up on Todo, move path out of base sensor
Not every sensor needs a sysfs path, because of that
move it out of the base class and into the classes that
need it.
Change-Id: I62b7df681e1ee889eb66e371d1cd6094097e9f21
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/src/CPUSensor.cpp b/src/CPUSensor.cpp
index 4c5eb8b..0920754 100644
--- a/src/CPUSensor.cpp
+++ b/src/CPUSensor.cpp
@@ -34,11 +34,11 @@
std::vector<thresholds::Threshold>&& _thresholds,
const std::string& sensorConfiguration, int cpuId,
bool show) :
- Sensor(boost::replace_all_copy(sensorName, " ", "_"), path,
+ Sensor(boost::replace_all_copy(sensorName, " ", "_"),
std::move(_thresholds), sensorConfiguration, objectType, maxReading,
minReading),
objServer(objectServer), inputDev(io, open(path.c_str(), O_RDONLY)),
- waitTimer(io), show(show),
+ path(path), waitTimer(io), show(show),
privTcontrol(std::numeric_limits<double>::quiet_NaN()), errCount(0)
{
nameTcontrol = labelTcontrol;