Re-fetch StateSensors if unable to find sensor

Saw defect after BMC reset/reload where occ-control only saw PDR for
first OCC. Code change will re-fetch the sensors in the case where an
expected PDR was not found.

Testing:
Forced removal of sensors which triggered the fetch and saw recovery.

Change-Id: I6e180f23b5817bc9ea0575674a318a2673f66f3d
Signed-off-by: Chris Cain <cjcain@us.ibm.com>
diff --git a/pldm.cpp b/pldm.cpp
index 470312c..a924132 100644
--- a/pldm.cpp
+++ b/pldm.cpp
@@ -885,6 +885,10 @@
                 "checkActiveSensor: Unable to find PLDM sensor for OCC{}",
                 instance)
                 .c_str());
+        log<level::INFO>(
+            "checkActiveSensor: fetching STATE_SET_OPERATIONAL_RUNNING_STATUS");
+        fetchSensorInfo(PLDM_STATE_SET_OPERATIONAL_RUNNING_STATUS,
+                        sensorToOCCInstance, OCCSensorOffset);
     }
 }