summaryrefslogtreecommitdiffstats
path: root/control/zone.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>2018-05-04 00:52:54 -0500
commit7eaf8d6aedd300da8eb4e9d911c4ce9b2fa97cf7 (patch)
treeec559561bf42b049a5beddf6ce77a9e8bcc3730f /control/zone.cpp
parent4f2f08d447147fdfe88366c4c9a7cf013e12c5e2 (diff)
downloadphosphor-fan-presence-7eaf8d6aedd300da8eb4e9d911c4ce9b2fa97cf7.tar.gz
phosphor-fan-presence-7eaf8d6aedd300da8eb4e9d911c4ce9b2fa97cf7.zip
Add fan shutdown option to stop rotors after chassis powerdown
Diffstat (limited to 'control/zone.cpp')
-rw-r--r--control/zone.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/control/zone.cpp b/control/zone.cpp
index 325a5b8..8e665f0 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.
@@ -103,6 +104,14 @@ void Zone::setFullSpeed()
}
}
+void Zone::disableRotors()
+{
+ for (auto& fan : _fans)
+ {
+ fan->disableRotor();
+ }
+}
+
void Zone::setActiveAllow(const Group* group, bool isActiveAllow)
{
_active[*(group)] = isActiveAllow;
OpenPOWER on IntegriCloud