Skip to content

Commit b9ddfa0

Browse files
only apply concrete node offset if its present and its set
1 parent 3e3e784 commit b9ddfa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎EDSTest/DevicePDOView.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ private void button_savepdochanges_Click(object sender, EventArgs e)
602602

603603
int nodeoffset = 0;
604604

605-
if (eds.di.concreteNodeId != -1)
605+
if (nodeidpresent && eds.di.concreteNodeId != -1)
606606
nodeoffset = eds.di.concreteNodeId;
607607

608608
eds.ods[index].subobjects[1].defaultvalue = string.Format("0x{0:x8}", newnode-nodeoffset);

0 commit comments

Comments
 (0)