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> | 2018-05-04 00:52:54 -0500 |
commit | 7eaf8d6aedd300da8eb4e9d911c4ce9b2fa97cf7 (patch) | |
tree | ec559561bf42b049a5beddf6ce77a9e8bcc3730f /control/manager.cpp | |
parent | 4f2f08d447147fdfe88366c4c9a7cf013e12c5e2 (diff) | |
download | phosphor-fan-presence-7eaf8d6aedd300da8eb4e9d911c4ce9b2fa97cf7.tar.gz phosphor-fan-presence-7eaf8d6aedd300da8eb4e9d911c4ce9b2fa97cf7.zip |
Add fan shutdown option to stop rotors after chassis powerdown
Diffstat (limited to 'control/manager.cpp')
-rw-r--r-- | control/manager.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/control/manager.cpp b/control/manager.cpp index d5f97d7..e48981d 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. @@ -169,6 +170,13 @@ void Manager::doInit() startFanControlReadyTarget(); } +void Manager::doShutdown() +{ + for (auto& z : _zones) + { + z.second->disableRotors(); + } +} void Manager::startFanControlReadyTarget() { |