CPUSensor: Fix reading failure after DC Cycle
This makes it so the timer is called all of the time
regardless if the async handler has fired. Making it
so that when the handler doesn't respond because of
error, we don't have issues.
Tested: DC cycled, continued to get readings
Change-Id: Ib12e172ae93eb6c7bb83876457ce4320822ba56e
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/include/CPUSensor.hpp b/include/CPUSensor.hpp
index 4cad880..30359ae 100644
--- a/include/CPUSensor.hpp
+++ b/include/CPUSensor.hpp
@@ -44,6 +44,7 @@
double privTcontrol;
double dtsOffset;
bool show;
+ size_t pollTime;
void setupRead(void);
void handleResponse(const boost::system::error_code& err);
void checkThresholds(void) override;