diff options
author | Matthew Barth <msbarth@us.ibm.com> | 2017-06-21 14:09:57 -0500 |
---|---|---|
committer | Matthew Barth <msbarth@us.ibm.com> | 2017-07-06 17:10:53 -0500 |
commit | 246235237c92bd6a55487bdd9fdc6b4b11466a7e (patch) | |
tree | 80239a8ab78877f5283218865a4f206e1521cd73 /control/zone.hpp | |
parent | e0ca13eb5b2feba044505e3234c8381d3ab03187 (diff) | |
download | phosphor-fan-presence-246235237c92bd6a55487bdd9fdc6b4b11466a7e.tar.gz phosphor-fan-presence-246235237c92bd6a55487bdd9fdc6b4b11466a7e.zip |
Add zone net increase set speed action
The net increase speed action provides the ability to determine what the
net delta the zone's fan speeds should be updated by from their current
target speed.
Change-Id: Ib463e5ed4836bebf906cea27ea5788d826ec9c38
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'control/zone.hpp')
-rw-r--r-- | control/zone.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/control/zone.hpp b/control/zone.hpp index fef3734..20b9ac9 100644 --- a/control/zone.hpp +++ b/control/zone.hpp @@ -168,6 +168,16 @@ class Zone return keyValue; }; + /** + * @brief Get the increase speed delta + * + * @return - The current increase speed delta + */ + inline auto& getIncSpeedDelta() const + { + return _incSpeedDelta; + }; + private: /** @@ -216,6 +226,11 @@ class Zone bool _isActive = true; /** + * Speed increase delta + */ + uint64_t _incSpeedDelta = 0; + + /** * The vector of fans in this zone */ std::vector<std::unique_ptr<Fan>> _fans; |