|
|
|
@ -302,6 +302,20 @@ installDefaultValuesForDataAttribute(IedServer self, LogicalDevice* ld, DataAttr
|
|
|
|
|
int childPosition = strlen(objectReference);
|
|
|
|
|
int childCompIdPos = strlen(componentId);
|
|
|
|
|
|
|
|
|
|
if (dataAttribute->elementCount > 0) {
|
|
|
|
|
int subIdx = 0;
|
|
|
|
|
|
|
|
|
|
DataAttribute* subDataAttribute = (DataAttribute*) dataAttribute->firstChild;
|
|
|
|
|
|
|
|
|
|
while (subDataAttribute != NULL) {
|
|
|
|
|
installDefaultValuesForDataAttribute(self, ld, subDataAttribute, objectReference, childPosition, subIdx, componentId, childCompIdPos);
|
|
|
|
|
|
|
|
|
|
subIdx++;
|
|
|
|
|
|
|
|
|
|
subDataAttribute = (DataAttribute*) subDataAttribute->sibling;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
DataAttribute* subDataAttribute = (DataAttribute*) dataAttribute->firstChild;
|
|
|
|
|
|
|
|
|
|
while (subDataAttribute != NULL) {
|
|
|
|
@ -309,6 +323,7 @@ installDefaultValuesForDataAttribute(IedServer self, LogicalDevice* ld, DataAttr
|
|
|
|
|
|
|
|
|
|
subDataAttribute = (DataAttribute*) subDataAttribute->sibling;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void
|
|
|
|
|