summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--monitor/tach_sensor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/monitor/tach_sensor.cpp b/monitor/tach_sensor.cpp
index 2ece054..6c7143a 100644
--- a/monitor/tach_sensor.cpp
+++ b/monitor/tach_sensor.cpp
@@ -145,8 +145,10 @@ TachSensor::TachSensor(sdbusplus::bus::bus& bus,
//Can cache this value after openbmc/openbmc#1496 is resolved
std::string TachSensor::getService()
{
+ // Use the Value interface since not all sensors implement
+ // the control interface.
return phosphor::fan::util::getService(_name,
- FAN_SENSOR_CONTROL_INTF,
+ FAN_SENSOR_VALUE_INTF,
_bus);
}
OpenPOWER on IntegriCloud