Fix a bug in libpldmresponder

This commit fixes the bug in the getStateSensorReading
command handler. We need to check the correct request bytes for
getStateSensorReading command (Section 20.2 in DSP0248)
and not getSensorReading command (Section 18.2 in DSP0248).

Change-Id: I0e5bf8774903c724ef3d9a4db76686ac6b0f897a
Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
diff --git a/libpldmresponder/platform.cpp b/libpldmresponder/platform.cpp
index c337f2d..38dc9df 100644
--- a/libpldmresponder/platform.cpp
+++ b/libpldmresponder/platform.cpp
@@ -667,7 +667,7 @@
     bitfield8_t sensorRearm{};
     uint8_t reserved{};
 
-    if (payloadLength != PLDM_GET_SENSOR_READING_REQ_BYTES)
+    if (payloadLength != PLDM_GET_STATE_SENSOR_READINGS_REQ_BYTES)
     {
         return ccOnlyResponse(request, PLDM_ERROR_INVALID_LENGTH);
     }