aboutsummaryrefslogtreecommitdiffstats
path: root/parameter/BitParameter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parameter/BitParameter.cpp')
-rw-r--r--parameter/BitParameter.cpp9
1 files changed, 7 insertions, 2 deletions
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 @@ bool CBitParameter::accessAsInteger(uint64_t& uiValue, bool bSet, CParameterAcce
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 {