diff options
author | Matthew Barth <msbarth@us.ibm.com> | 2019-01-22 09:26:09 -0600 |
---|---|---|
committer | Matthew Barth <msbarth@us.ibm.com> | 2019-02-13 14:31:44 -0600 |
commit | 6faf8943ddb3888485a50269fe43a6d5b6f68afc (patch) | |
tree | b5c1b0195684699de1e5be2e6dd43c399ccd3c6f /control/zone.hpp | |
parent | 9e4db25cdf7d02878aab1d485b20235c147fbe4a (diff) | |
download | phosphor-fan-presence-6faf8943ddb3888485a50269fe43a6d5b6f68afc.tar.gz phosphor-fan-presence-6faf8943ddb3888485a50269fe43a6d5b6f68afc.zip |
Override setting Current mode property
When the Current mode property changes, the persisted value is updated.
Change-Id: I319fbe2afb8112f7425dc0a1d765fe8f1c408bae
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'control/zone.hpp')
-rw-r--r-- | control/zone.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/control/zone.hpp b/control/zone.hpp index 3774d76..73761d0 100644 --- a/control/zone.hpp +++ b/control/zone.hpp @@ -468,6 +468,15 @@ class Zone : public ThermalObject const std::string& intf, int32_t depth); + /** + * @brief Overridden thermal object's set 'Current' property function + * + * @param[in] value - Value to set 'Current' to + * + * @return - The updated value of the 'Current' property + */ + virtual std::string current(std::string value); + private: /** |