From 8600d9a0058071951e0881037deff77fc03d1601 Mon Sep 17 00:00:00 2001 From: Matthew Barth Date: Fri, 23 Jun 2017 14:38:05 -0500 Subject: 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 --- control/manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'control/manager.cpp') 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(z), - std::make_unique(mode, _bus, z)); + std::make_unique(mode, _bus, events, z)); } break; -- cgit v1.2.1