Fix for airflow sensor interface path
Corrected the airflow sensor dbus interface path to airflow from cfm.
Reference of airflow interface description
https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/yaml/xyz
/openbmc_project/Sensor/Value.interface.yaml
Tested:
ipmitool sdr elist - shows the System Airflow sensor
busctl tree xyz.openbmc_project.ExitAirTempSensor
busctl introspect xyz.openbmc_project.ExitAirTempSensor
/xyz/openbmc_project/sensors/airflow/System_Airflow
Signed-off-by: Basheer Ahmed Muddebihal <basheerx.muddebihal@intel.com>
Change-Id: I8d596d388374b4f8cc1354d05e795781093d076c
diff --git a/src/ExitAirTempSensor.cpp b/src/ExitAirTempSensor.cpp
index 8ea42ff..70b9e7a 100644
--- a/src/ExitAirTempSensor.cpp
+++ b/src/ExitAirTempSensor.cpp
@@ -169,25 +169,25 @@
std::enable_shared_from_this<CFMSensor>(), parent(parent),
objServer(objectServer)
{
- sensorInterface =
- objectServer.add_interface("/xyz/openbmc_project/sensors/cfm/" + name,
- "xyz.openbmc_project.Sensor.Value");
+ sensorInterface = objectServer.add_interface(
+ "/xyz/openbmc_project/sensors/airflow/" + name,
+ "xyz.openbmc_project.Sensor.Value");
if (thresholds::hasWarningInterface(thresholds))
{
thresholdInterfaceWarning = objectServer.add_interface(
- "/xyz/openbmc_project/sensors/cfm/" + name,
+ "/xyz/openbmc_project/sensors/airflow/" + name,
"xyz.openbmc_project.Sensor.Threshold.Warning");
}
if (thresholds::hasCriticalInterface(thresholds))
{
thresholdInterfaceCritical = objectServer.add_interface(
- "/xyz/openbmc_project/sensors/cfm/" + name,
+ "/xyz/openbmc_project/sensors/airflow/" + name,
"xyz.openbmc_project.Sensor.Threshold.Critical");
}
association = objectServer.add_interface(
- "/xyz/openbmc_project/sensors/cfm/" + name, association::interface);
+ "/xyz/openbmc_project/sensors/airflow/" + name, association::interface);
setInitialProperties(conn, sensor_paths::unitCFM);