summaryrefslogtreecommitdiffstats
path: root/control/actions.hpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2017-06-02 15:20:56 -0500
committerMatthew Barth <msbarth@us.ibm.com>2017-06-26 09:19:56 -0500
commitcec5ab766709af9b713f94576b6f05bf63fc0718 (patch)
tree131c6efb4e1a9894b35542f14e7fd4a9d31bea8f /control/actions.hpp
parentb751f32d06cb8804bdd4344f3868ca284c0c9e68 (diff)
downloadphosphor-fan-presence-cec5ab766709af9b713f94576b6f05bf63fc0718.tar.gz
phosphor-fan-presence-cec5ab766709af9b713f94576b6f05bf63fc0718.zip
Add interface to uniquely identify properties
The interface is needed on the properties stored to uniquely identify each property used in events. Change-Id: Ia062f25514d7ed04ef1023a02eecad4738711ffb Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'control/actions.hpp')
-rw-r--r--control/actions.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/control/actions.hpp b/control/actions.hpp
index 96da323..21d9365 100644
--- a/control/actions.hpp
+++ b/control/actions.hpp
@@ -35,6 +35,7 @@ auto count_state_before_speed(size_t count, bool state, uint64_t speed)
{
return zone.getPropertyValue(
entry.first,
+ std::get<intfPos>(entry.second),
std::get<propPos>(entry.second)) == state;
});
// Update group's fan control active allowed based on action results
OpenPOWER on IntegriCloud