diff options
author | Matthew Barth <msbarth@us.ibm.com> | 2017-08-04 12:58:02 -0500 |
---|---|---|
committer | Matthew Barth <msbarth@us.ibm.com> | 2017-08-07 15:30:10 -0500 |
commit | f6b76d8e8fbe71dbecad2189c28265ddff73c9ba (patch) | |
tree | 739d374f66620df2aa7da84df3bfc977562165ef /control/preconditions.hpp | |
parent | 604329ef36d8ba2cd324f7132427d7e5724c074e (diff) | |
download | phosphor-fan-presence-f6b76d8e8fbe71dbecad2189c28265ddff73c9ba.tar.gz phosphor-fan-presence-f6b76d8e8fbe71dbecad2189c28265ddff73c9ba.zip |
Remove set speed event
Allows the complete removal of a set speed event from the zone. This is
done when any precondition defined for the event to be active is not
met any longer.
Change-Id: Idbec357f76f0fd7db9107e8c9d3e00461872c528
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'control/preconditions.hpp')
-rw-r--r-- | control/preconditions.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/control/preconditions.hpp b/control/preconditions.hpp index 3bceb19..8b2e93e 100644 --- a/control/preconditions.hpp +++ b/control/preconditions.hpp @@ -64,7 +64,8 @@ auto property_states_match(std::vector<PrecondGroup>&& pg, else { zone.setFullSpeed(); - // TODO Unsubscribe the event signals when any precondition is false + // Unsubscribe the event signals when any precondition is false + zone.removeEvent(sse); } }; } |