diff options
author | Matthew Barth <msbarth@us.ibm.com> | 2017-06-23 14:38:05 -0500 |
---|---|---|
committer | Matthew Barth <msbarth@us.ibm.com> | 2017-07-06 17:25:12 -0500 |
commit | 8600d9a0058071951e0881037deff77fc03d1601 (patch) | |
tree | 6d1b42e94f22db089ed39534555acaacd337bee9 /control/manager.cpp | |
parent | 0ce99d8b377e68b5286c37e7e644301051972083 (diff) | |
download | phosphor-fan-presence-8600d9a0058071951e0881037deff77fc03d1601.tar.gz phosphor-fan-presence-8600d9a0058071951e0881037deff77fc03d1601.zip |
Timer to decrease fan speeds
Create a repeating timer for decreasing fan speeds where the fan speeds
in the zone are decreased when the timer expires and a decrease speed
request exists with no increase request present or active.
Change-Id: I419592f6f50c0ed524f8bf3ebf183854ab5ef2ea
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'control/manager.cpp')
-rw-r--r-- | control/manager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/control/manager.cpp b/control/manager.cpp index bbd0f5e..d5f97d7 100644 --- a/control/manager.cpp +++ b/control/manager.cpp @@ -119,6 +119,7 @@ bool checkCondition(sdbusplus::bus::bus& bus, const auto& c) //Note: Future code will check 'mode' before starting control algorithm Manager::Manager(sdbusplus::bus::bus& bus, + phosphor::fan::event::EventPtr& events, Mode mode) : _bus(bus) { @@ -142,7 +143,7 @@ Manager::Manager(sdbusplus::bus::bus& bus, for (auto& z : zones) { _zones.emplace(std::get<zoneNumPos>(z), - std::make_unique<Zone>(mode, _bus, z)); + std::make_unique<Zone>(mode, _bus, events, z)); } break; |