TachSensor: Add threshold power check
This fixes extra SEL on ipmitool power cycle
tested: ipmitool power cycle very fast 10 times, no sel
Change-Id: I8ae1e080f5a614efb083a163ea1e4b69d58c2aed
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/src/TachSensor.cpp b/src/TachSensor.cpp
index 46f5389..23ae477 100644
--- a/src/TachSensor.cpp
+++ b/src/TachSensor.cpp
@@ -197,7 +197,13 @@
void TachSensor::checkThresholds(void)
{
+ if (!isPowerOn())
+ {
+ return;
+ }
+
bool status = thresholds::checkThresholds(this);
+
if (redundancy && *redundancy)
{
(*redundancy)