diff options
author | Matthew Barth <msbarth@us.ibm.com> | 2017-05-19 14:37:30 -0500 |
---|---|---|
committer | Matthew Barth <msbarth@us.ibm.com> | 2017-05-31 12:46:08 -0500 |
commit | 14184131ba863121ac0cda5d8cacfd9a18643fae (patch) | |
tree | fd794ace7ef5bbce89afbc774d14b9981579e264 /control/zone.hpp | |
parent | 9c72667e8f6f75ffd1fd29de817fa8fdcbd1b45d (diff) | |
download | phosphor-fan-presence-14184131ba863121ac0cda5d8cacfd9a18643fae.tar.gz phosphor-fan-presence-14184131ba863121ac0cda5d8cacfd9a18643fae.zip |
Only setup set speed events when not init mode
Change-Id: Ia6987295a3eb4e23b9d6ae13a383e440386572de
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, 14 insertions, 1 deletions
diff --git a/control/zone.hpp b/control/zone.hpp index d8f3fe4..1a4e173 100644 --- a/control/zone.hpp +++ b/control/zone.hpp @@ -13,6 +13,17 @@ namespace control { /** + * The mode fan control will run in: + * - init - only do the initialization steps + * - control - run normal control algorithms + */ +enum class Mode +{ + init, + control +}; + +/** * @class Represents a fan control zone, which is a group of fans * that behave the same. */ @@ -32,10 +43,12 @@ class Zone * Creates the appropriate fan objects based on * the zone definition data passed in. * + * @param[in] mode - mode of fan control * @param[in] bus - the dbus object * @param[in] def - the fan zone definition data */ - Zone(sdbusplus::bus::bus& bus, + Zone(Mode mode, + sdbusplus::bus::bus& bus, const ZoneDefinition& def); /** |