From a964223bba361d62e14621137b353daaf3dacdc8 Mon Sep 17 00:00:00 2001 From: Raptor Engineering Development Team Date: Wed, 24 Jan 2018 21:59:42 -0600 Subject: Add fan shutdown option to stop rotors after chassis powerdown --- control/manager.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'control/manager.cpp') diff --git a/control/manager.cpp b/control/manager.cpp index 360239c..cbcb1d3 100644 --- a/control/manager.cpp +++ b/control/manager.cpp @@ -1,5 +1,6 @@ /** * Copyright © 2017 IBM Corporation + * Copyright © 2017-2018 Raptor Engineering, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -147,6 +148,14 @@ void Manager::doInit() "replace"); } +void Manager::doShutdown() +{ + for (auto& z : _zones) + { + z.second->disableRotors(); + } +} + } // namespace control } // namespace fan } // namespace phosphor -- cgit v1.2.1