Skip to content

Commit

Permalink
only apply concrete node offset if its present and its set
Browse files Browse the repository at this point in the history
  • Loading branch information
robincornelius committed Jan 4, 2017
1 parent 3e3e784 commit b9ddfa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EDSTest/DevicePDOView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ private void button_savepdochanges_Click(object sender, EventArgs e)

int nodeoffset = 0;

if (eds.di.concreteNodeId != -1)
if (nodeidpresent && eds.di.concreteNodeId != -1)
nodeoffset = eds.di.concreteNodeId;

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

0 comments on commit b9ddfa0

Please sign in to comment.