From 8e942504b07a546de78f21dcf2368507dfcf64bb Mon Sep 17 00:00:00 2001 From: Brad Bishop Date: Tue, 11 Jul 2017 00:35:53 -0400 Subject: 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 --- monitor/tach_sensor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- cgit v1.2.1