summaryrefslogtreecommitdiffstats
path: root/control/zone.cpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2017-10-04 12:59:50 -0500
committerMatthew Barth <msbarth@us.ibm.com>2017-11-17 13:14:11 -0600
commit7b7ceb8deb48d6d5833b02bc33987fca2e647a68 (patch)
tree3334d51f13d34172db031d011d217b700eb50f2b /control/zone.cpp
parent5a302576091fb182b57aab482a4731655295046f (diff)
downloadphosphor-fan-presence-7b7ceb8deb48d6d5833b02bc33987fca2e647a68.tar.gz
phosphor-fan-presence-7b7ceb8deb48d6d5833b02bc33987fca2e647a68.zip
Add timer type for set speed event timers
This is the first step towards allowing timer driven and/or wrapped actions where the timer interval and type will be defined by the user. Change-Id: If008fda5a2b73117e869f93223e0bfe61290f858 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'control/zone.cpp')
-rw-r--r--control/zone.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/control/zone.cpp b/control/zone.cpp
index b9a7583..b698c12 100644
--- a/control/zone.cpp
+++ b/control/zone.cpp
@@ -271,7 +271,7 @@ void Zone::initEvent(const SetSpeedEvent& event)
if (!timer->running())
{
timer->start(std::get<intervalPos>(eventTimer),
- util::Timer::TimerType::repeating);
+ std::get<typePos>(eventTimer));
}
_timerEvents.emplace_back(std::move(timer));
}
OpenPOWER on IntegriCloud