diff options
author | Matthew Barth <msbarth@us.ibm.com> | 2018-02-16 12:38:27 -0600 |
---|---|---|
committer | Matthew Barth <msbarth@us.ibm.com> | 2018-03-01 09:34:09 -0600 |
commit | a1c88322b837b2b752494e91427d3950e1cd5ccc (patch) | |
tree | ed9914aab3682a222f9342e84d6c66f1d337afaf /monitor/nonzero_speed_trust.hpp | |
parent | 6f31d19b704adf7302f924c1fbb80059fd3e7532 (diff) | |
download | phosphor-fan-presence-a1c88322b837b2b752494e91427d3950e1cd5ccc.tar.gz phosphor-fan-presence-a1c88322b837b2b752494e91427d3950e1cd5ccc.zip |
Replace tuple with struct for trust sensor group
To simplify sensor and trust access, utilize a struct in place of a
tuple for storing the trust group sensors and their inclusion in the
trust determination.
Tested: Current trust group associations & reactions are unchanged
Change-Id: Ifd5cf5d0540a3b2028ccf74e725d8ddd11982aee
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'monitor/nonzero_speed_trust.hpp')
-rw-r--r-- | monitor/nonzero_speed_trust.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor/nonzero_speed_trust.hpp b/monitor/nonzero_speed_trust.hpp index e1f787f..7e6a85a 100644 --- a/monitor/nonzero_speed_trust.hpp +++ b/monitor/nonzero_speed_trust.hpp @@ -54,7 +54,7 @@ class NonzeroSpeed : public Group _sensors.end(), [](const auto& s) { - return std::get<0>(s)->getInput() != 0; + return s.sensor->getInput() != 0; }); } }; |