Restore autosync of string parameter
BZ: 183857
Sync for String parameter accessed from parameter handle API
does not work.
This patch allows synchronisation for string parameter accessed
from parameter handle APIs.
Change-Id: If738402f4c0fcb0bb51bd2515e46f3ac36a361dd
Signed-off-by: Francois Gaffie <francois.gaffie@intel.com>
Signed-off-by: Mattijs Korpershoek <mattijsx.korpershoek@intel.com>
diff --git a/parameter/BitParameter.cpp b/parameter/BitParameter.cpp
index aed9459..2077cde 100644
--- a/parameter/BitParameter.cpp
+++ b/parameter/BitParameter.cpp
@@ -113,12 +113,17 @@
if (bSet) {
- // Set and sync
- if (!doSet(uiValue, uiOffset, parameterAccessContext) || !sync(parameterAccessContext)) {
+ // Set Value
+ if (!doSet(uiValue, uiOffset, parameterAccessContext)) {
// Append parameter path to error
parameterAccessContext.appendToError(" " + getPath());
+ return false;
+ }
+ // Synchronize
+ if (!sync(parameterAccessContext)) {
+ parameterAccessContext.appendToError(" " + getPath());
return false;
}
} else {