From 67967f9a3f8e779d897a66cc6d559783911b2c14 Mon Sep 17 00:00:00 2001 From: Matthew Barth Date: Fri, 22 Sep 2017 12:43:57 -0500 Subject: Generate selected match strings and signals The available matches and their associated signals are now listed within the events yaml and can be added to the list of matches to register for per event. Change-Id: I65f657038afe7c68a421adb4820ea09e275be06d Signed-off-by: Matthew Barth --- control/zone.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'control/zone.cpp') diff --git a/control/zone.cpp b/control/zone.cpp index 88cdc86..fa426e6 100644 --- a/control/zone.cpp +++ b/control/zone.cpp @@ -213,22 +213,22 @@ void Zone::initEvent(const SetSpeedEvent& event) entry("PROPERTY=%s", std::get(group.second).c_str())); } } - // Setup signal matches for property change events - for (auto& prop : std::get(event)) + // Setup signal matches for events + for (auto& sig : std::get(event)) { std::unique_ptr eventData = std::make_unique( EventData { std::get(event), - std::get(prop), + std::get(sig), std::get(event) } ); std::unique_ptr match = std::make_unique( _bus, - std::get(prop).c_str(), + std::get(sig).c_str(), std::bind(std::mem_fn(&Zone::handleEvent), this, std::placeholders::_1, -- cgit v1.2.1