diff options
Diffstat (limited to 'sensorhandler.cpp')
-rw-r--r-- | sensorhandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sensorhandler.cpp b/sensorhandler.cpp index eac4215..d8cd0d4 100644 --- a/sensorhandler.cpp +++ b/sensorhandler.cpp @@ -206,7 +206,7 @@ int find_openbmc_path(uint8_t num, dbus_interface_t *interface) { // works for the Value interface but may not suffice for more complex // sensors. // tracked https://github.com/openbmc/phosphor-host-ipmid/issues/103 - strcpy(interface->interface, info.sensorInterfaces.begin()->first.c_str()); + strcpy(interface->interface, info.propertyInterfaces.begin()->first.c_str()); interface->sensornumber = num; final: @@ -649,7 +649,7 @@ ipmi_ret_t populate_record_from_dbus(get_sdr::SensorDataFullRecordBody *body, ipmi_data_len_t data_len) { /* Functional sensor case */ - if (info->sensorInterfaces.begin()->first == + if (info->propertyInterfaces.begin()->first == "xyz.openbmc_project.Sensor.Value") { // Get bus |