bugfix: writePath is the dbus object path for the sensor

For the sensor, if writePath is used for dbus active, it is always
FanPwm (presently) and needs to be the object path.

Tested: Not tested, only code inspected.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I4eafaff4316aac9dab9a2c9e1bd61093a670b023
diff --git a/util.cpp b/util.cpp
index f66f20b..ec60d7a 100644
--- a/util.cpp
+++ b/util.cpp
@@ -21,7 +21,6 @@
 static constexpr auto external_sensor =
     "/xyz/openbmc_project/extsensors/";                         // type/
 static constexpr auto openbmc_sensor = "/xyz/openbmc_project/"; // type/
-static constexpr auto dbus_pwm = "/xyz/openbmc_project/control/fanpwm/";
 static constexpr auto sysfs = "/sys/";
 
 IOInterfaceType getWriteInterfaceType(const std::string& path)
@@ -37,7 +36,7 @@
         return IOInterfaceType::SYSFS;
     }
 
-    if (path.find(dbus_pwm) != std::string::npos)
+    if (path.find(openbmc_sensor) != std::string::npos)
     {
         return IOInterfaceType::DBUSACTIVE;
     }