summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2017-07-11 00:35:53 -0400
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-07-11 00:35:53 -0400
commit8e942504b07a546de78f21dcf2368507dfcf64bb (patch)
tree0a97e053e5300be8e3b0e9631cebc153d9c926cc
parent8e9a8e75ab05e6ab69634ea365231dc6cee56087 (diff)
downloadphosphor-fan-presence-8e942504b07a546de78f21dcf2368507dfcf64bb.tar.gz
phosphor-fan-presence-8e942504b07a546de78f21dcf2368507dfcf64bb.zip
monitor: Avoid Target interface for mapper queries
Avoid asking the mapper for the Target interface on sensors that do not have it. Change-Id: I43f61c98291cc15d7daf43d2b01c6b7fa4edfa62
-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