From 3800ae715a5835e72754a03eac230ef00d14c538 Mon Sep 17 00:00:00 2001 From: Matthew Barth Date: Mon, 19 Feb 2018 16:08:04 -0600 Subject: Define a mode for tach sensor timer Use a single timer on the tach sensors for delaying both nonfunctional and functional state changes by declaring what mode the timer is in. Since a fan is either transitioning from a functional state to a nonfunctional state or vice-versa, enabling the timer in the mode requested allows the user to define a delay for both of these transition states. Tested: Current nonfunctional timer delay operates the same Change-Id: I0c165355d41d27e1906918953e5226968062ee16 Signed-off-by: Matthew Barth --- monitor/trust_group.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'monitor/trust_group.hpp') diff --git a/monitor/trust_group.hpp b/monitor/trust_group.hpp index a41520a..07d6a0e 100644 --- a/monitor/trust_group.hpp +++ b/monitor/trust_group.hpp @@ -142,7 +142,8 @@ class Group s.sensor->getInput()) != s.sensor->getTarget()) { - s.sensor->startTimer(); + s.sensor->startTimer( + phosphor::fan::monitor::TimerMode::nonfunc); } }); } -- cgit v1.2.1