diff options
author | Raptor Engineering Development Team <support@raptorengineering.com> | 2018-01-24 21:59:42 -0600 |
---|---|---|
committer | Raptor Engineering Development Team <support@raptorengineering.com> | 2019-04-19 22:07:46 +0000 |
commit | a964223bba361d62e14621137b353daaf3dacdc8 (patch) | |
tree | c24cdeeed2c0f69bbfdd38da3cfad22fb9fdea00 /control/zone.cpp | |
parent | 26a78ab15690be7421bb000bc473cd0bdfd8ad15 (diff) | |
download | phosphor-fan-presence-a964223bba361d62e14621137b353daaf3dacdc8.tar.gz phosphor-fan-presence-a964223bba361d62e14621137b353daaf3dacdc8.zip |
Add fan shutdown option to stop rotors after chassis powerdown
Diffstat (limited to 'control/zone.cpp')
-rw-r--r-- | control/zone.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/control/zone.cpp b/control/zone.cpp index fddca53..468a605 100644 --- a/control/zone.cpp +++ b/control/zone.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. @@ -123,6 +124,14 @@ void Zone::setFullSpeed() } } +void Zone::disableRotors() +{ + for (auto& fan : _fans) + { + fan->disableRotor(); + } +} + void Zone::setActiveAllow(const Group* group, bool isActiveAllow) { _active[*(group)] = isActiveAllow; |