summaryrefslogtreecommitdiffstats
path: root/control/zone.hpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2017-06-12 13:13:02 -0500
committerMatthew Barth <msbarth@us.ibm.com>2017-06-26 09:24:41 -0500
commit1de66629a31ee2a4751b2f30c5baa11464ba5aad (patch)
treed908cf562395a0b978a8b36be20ba22e24af0215 /control/zone.hpp
parent9e741ed099a77ed2638b852027e751b90f67450d (diff)
downloadphosphor-fan-presence-1de66629a31ee2a4751b2f30c5baa11464ba5aad.tar.gz
phosphor-fan-presence-1de66629a31ee2a4751b2f30c5baa11464ba5aad.zip
Add default floor speed support
Change-Id: Id2d3b362e79e7a8c2330181f68ae11e43f84e2fd Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'control/zone.hpp')
-rw-r--r--control/zone.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/control/zone.hpp b/control/zone.hpp
index 1af0c22..c524397 100644
--- a/control/zone.hpp
+++ b/control/zone.hpp
@@ -113,6 +113,16 @@ class Zone
_properties[object][interface][property]);
};
+ /**
+ * @brief Get the default floor speed
+ *
+ * @return - The defined default floor speed
+ */
+ inline auto getDefFloor()
+ {
+ return _defFloorSpeed;
+ };
+
private:
/**
@@ -131,6 +141,11 @@ class Zone
const size_t _zoneNum;
/**
+ * The default floor speed for the zone
+ */
+ const uint64_t _defFloorSpeed;
+
+ /**
* Automatic fan control active state
*/
bool _isActive = true;
OpenPOWER on IntegriCloud