Skip to content

Commit

Permalink
Allow sub object 0 to be edited for PDO mapping parameters and thus s…
Browse files Browse the repository at this point in the history
…upport dynamic PDOs fixes #46
  • Loading branch information
robincornelius committed Jan 4, 2017
1 parent 0c11e50 commit 8f9e796
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions EDSTest/DeviceODView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,17 @@ public void validateanddisplaydata()

}

if (od.parent.objecttype == ObjectType.REC &&
((od.parent.index >=0x1600 && od.parent.index <= 0x17ff) || (od.parent.index >= 0x1A00 && od.parent.index <= 0x1Bff)) &&
od.subindex == 0)
{
//We are allowed to edit the no sub objects for the PDO mappings as its a requirment to support dynamic PDOs

textBox_defaultvalue.Enabled = true;
comboBox_accesstype.Enabled = true;
}


updating = false;

return;
Expand Down

0 comments on commit 8f9e796

Please sign in to comment.