blob: 5314a9525ec8fb4d72443e1537c6a1d579e18d90 [file] [log] [blame]
Matthew Barth1b4de262018-03-06 13:03:16 -06001#include "triggers.hpp"
2
3namespace phosphor
4{
5namespace fan
6{
7namespace control
8{
9namespace trigger
10{
11
12using namespace phosphor::fan;
13
14Trigger timer(TimerConf&& tConf)
15{
16 return [tConf = std::move(tConf)](control::Zone& zone,
17 const Group& group,
18 const std::vector<Action>& actions)
19 {
20 zone.addTimer(group,
21 actions,
22 tConf);
23 };
24}
25
26} // namespace trigger
27} // namespace control
28} // namespace fan
29} // namespace phosphor