diff options
author | Matthew Barth <msbarth@us.ibm.com> | 2017-10-04 12:59:50 -0500 |
---|---|---|
committer | Matthew Barth <msbarth@us.ibm.com> | 2017-11-17 13:14:11 -0600 |
commit | 7b7ceb8deb48d6d5833b02bc33987fca2e647a68 (patch) | |
tree | 3334d51f13d34172db031d011d217b700eb50f2b /control/zone.cpp | |
parent | 5a302576091fb182b57aab482a4731655295046f (diff) | |
download | phosphor-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.cpp | 2 |
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)); } |