diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-07-11 00:35:53 -0400 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-07-11 00:35:53 -0400 |
commit | 8e942504b07a546de78f21dcf2368507dfcf64bb (patch) | |
tree | 0a97e053e5300be8e3b0e9631cebc153d9c926cc | |
parent | 8e9a8e75ab05e6ab69634ea365231dc6cee56087 (diff) | |
download | phosphor-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.cpp | 4 |
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); } |