summaryrefslogtreecommitdiffstats
path: root/monitor/fan.cpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2018-02-19 14:13:20 -0600
committerMatthew Barth <msbarth@us.ibm.com>2018-03-01 09:34:09 -0600
commit9396bcc3d3a60fdad5875433210038c1b9d20ac5 (patch)
treef56782772072715912780d087d1cf1036fe8f0f9 /monitor/fan.cpp
parentc63ef39f17b9dab2ca565091aa076bf219085d7f (diff)
downloadphosphor-fan-presence-9396bcc3d3a60fdad5875433210038c1b9d20ac5.tar.gz
phosphor-fan-presence-9396bcc3d3a60fdad5875433210038c1b9d20ac5.zip
Add tach sensor functional delay
Add ability to define a delay to marking a tach sensor as functional when it transitions from a nonfunctional state. Essentially this gives the option to wait a given amount of time that a tach sensor must be within the allowed deviation before being updated to functional. Default functional delay = 0 seconds Tested: Current fan definition values function the same Change-Id: I58bf70d2335e27c06037b755cbee8dae81528a5a Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'monitor/fan.cpp')
-rw-r--r--monitor/fan.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/monitor/fan.cpp b/monitor/fan.cpp
index 256d0cb..228ecd3 100644
--- a/monitor/fan.cpp
+++ b/monitor/fan.cpp
@@ -53,6 +53,7 @@ Fan::Fan(Mode mode,
*this,
std::get<sensorNameField>(s),
std::get<hasTargetField>(s),
+ std::get<funcDelay>(def),
std::get<targetInterfaceField>(s),
std::get<factorField>(s),
std::get<offsetField>(s),
OpenPOWER on IntegriCloud