Update default floor action
Add action to be able to update the default fan floor thru a configured
event.
Tested:
Default floor is updated based on state of group property value
Change-Id: I83a4ae313636abbe1e5c8b6ddfc2d5f9d281f844
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/zone.hpp b/control/zone.hpp
index e48a981..6982508 100644
--- a/control/zone.hpp
+++ b/control/zone.hpp
@@ -300,6 +300,16 @@
};
/**
+ * @brief Set the default floor
+ *
+ * @param[in] speed - Speed to set the default floor to
+ */
+ inline void setDefFloor(uint64_t speed)
+ {
+ _defFloorSpeed = speed;
+ };
+
+ /**
* @brief Get the ceiling speed
*
* @return - The current ceiling speed
@@ -637,7 +647,7 @@
/**
* The default floor speed for the zone
*/
- const uint64_t _defFloorSpeed;
+ uint64_t _defFloorSpeed;
/**
* The default ceiling speed for the zone