pldm: Fix get the offset value by the sensorEvent method
When the sensorEvent method is triggered and the property value is
obtained, msgSensorOffset should be used insteand of sensorOffset.
s/sensorOffset/msgSensorOffset
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I02405d7b9da82b05150b0f0bd91e28285ef71386
diff --git a/pldm.cpp b/pldm.cpp
index 22beea9..e45e544 100644
--- a/pldm.cpp
+++ b/pldm.cpp
@@ -104,7 +104,7 @@
EventState eventState{};
EventState previousEventState{};
- msg.read(tid, sensorId, sensorOffset, eventState, previousEventState);
+ msg.read(tid, sensorId, msgSensorOffset, eventState, previousEventState);
auto sensorEntry = sensorToOCCInstance.find(sensorId);
if (sensorEntry == sensorToOCCInstance.end() ||