summaryrefslogtreecommitdiff
path: root/gpiodaemon
diff options
context:
space:
mode:
authorRichard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>2019-03-20 17:24:41 +0300
committerThomaiyar, Richard Marian <richard.marian.thomaiyar@intel.com>2019-03-27 09:37:47 +0300
commit8f2613f77dbd288c93f9bf8bfb06473406f615f9 (patch)
tree98946abf582da05a9c8b58b433aa44df209efe2d /gpiodaemon
parentf4d4bfc3296cb27feb17aa5d1d93b3061b56ce10 (diff)
downloadprovingground-8f2613f77dbd288c93f9bf8bfb06473406f615f9.tar.xz
Skip property change signal during start
During the object addition in Gpio daemon, InterfaceAdded signal will be generated which contains all property values. Need to block generating PropertiesChanged signal during this time, as there was no property changed. Generating PropertiesChanged signal during start-up will also confuse Buttons or any other application which monitors this signal, hence it has to be avoided. Tested: 1. Verified InterfacesAdded signal is properly generated during startup 2. Verified PropertiesChanged signal is properly sent out, when there is gpio value change. Change-Id: I59c1db645197a0244567a87cbff04e0e7282ea9f Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
Diffstat (limited to 'gpiodaemon')
-rw-r--r--gpiodaemon/src/gpiodaemon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpiodaemon/src/gpiodaemon.cpp b/gpiodaemon/src/gpiodaemon.cpp
index 2d03c54..5600f69 100644
--- a/gpiodaemon/src/gpiodaemon.cpp
+++ b/gpiodaemon/src/gpiodaemon.cpp
@@ -236,7 +236,7 @@ GpioState::GpioState(const std::string& name_, const uint64_t& number_,
: static_cast<bool>(gpio.getValue()));
});
- iface->initialize();
+ iface->initialize(true);
// TODO: implement gpio device character access in gpioutils.cpp
// and make use of gpioutils file to read directly