NVMeBasicContext: Defer polling sensors that are in error

A sensor is only polled after N sampling periods if it is in error. This
necessitates the movement of some of the error handling so we can
increment the sensor's error counter as appropriate.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Ie19f6ceb7ad8f9b2f1408a4ca8f12c0ca385ce8c
diff --git a/include/NVMeSensor.hpp b/include/NVMeSensor.hpp
index d713211..a0dce78 100644
--- a/include/NVMeSensor.hpp
+++ b/include/NVMeSensor.hpp
@@ -19,10 +19,14 @@
 
     NVMeSensor& operator=(const NVMeSensor& other) = delete;
 
+    bool sample();
+
     int bus;
 
   private:
+    const unsigned int scanDelayTicks = 5 * 60;
     sdbusplus::asio::object_server& objServer;
+    unsigned int scanDelay;
 
     void checkThresholds(void) override;
 };