summaryrefslogtreecommitdiffstats
path: root/control/manager.cpp
diff options
context:
space:
mode:
authorRaptor Engineering Development Team <support@raptorengineering.com>2018-01-24 21:59:42 -0600
committerRaptor Engineering Development Team <support@raptorengineering.com>2019-04-19 22:07:46 +0000
commita964223bba361d62e14621137b353daaf3dacdc8 (patch)
treec24cdeeed2c0f69bbfdd38da3cfad22fb9fdea00 /control/manager.cpp
parent26a78ab15690be7421bb000bc473cd0bdfd8ad15 (diff)
downloadphosphor-fan-presence-a964223bba361d62e14621137b353daaf3dacdc8.tar.gz
phosphor-fan-presence-a964223bba361d62e14621137b353daaf3dacdc8.zip
Add fan shutdown option to stop rotors after chassis powerdown
Diffstat (limited to 'control/manager.cpp')
-rw-r--r--control/manager.cpp9
1 files changed, 9 insertions, 0 deletions
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
OpenPOWER on IntegriCloud