- IED server: fixed value initialization of array elements

- fixed merging problem in LogicalNode.java
v1.6_develop_rgoose_sntp
Michael Zillgith 3 years ago
parent e46e137def
commit d8b595944d

@ -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

@ -245,7 +245,7 @@ public class LogicalNode implements DataModelNode {
if (subDataAttribute == null)
System.out.println("subelement with name " + sdiName + " not found!");
parseDataAttributeNodes(sdiNode, subDataAttribute);
parseDataAttributeNodes(sdiNode, subDataAttribute, -1);
parseSubDataInstances(sdiNode, subDataAttribute);
}

Loading…
Cancel
Save