Skip to content

Commit d69267f

Browse files
authored
Merge pull request #209 from ryan2445/master
Fix tests & remove parent reference during DeepCopy()
2 parents 01b8918 + 7184b41 commit d69267f

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

LibNoDaveConnectionLibrary/DataTypes/Blocks/Step7V5/S7DataRow.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ public S7DataRow(string name, S7DataRowType datatype, Block plcblock)
6868
public override TiaAndSTep7DataBlockRow DeepCopy()
6969
{
7070
S7DataRow newRow = new S7DataRow(this.Name, this.DataType, this.PlcBlock);
71-
newRow.Parent = this.Parent;
7271
newRow.ArrayStart = this.ArrayStart;
7372
newRow.ArrayStop = this.ArrayStop;
7473
newRow.IsArray = this.IsArray;

LibNoDaveConnectionLibrary/PLCs/S7_xxx/MC7/Parameter.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -642,14 +642,6 @@ internal static S7DataRow GetInterface(byte[] interfaceBytes, byte[] startValueB
642642
S7DataRow parameterTEMP = new S7DataRow("TEMP", S7DataRowType.STRUCT, myBlk);
643643
S7DataRow parameterRETVAL = new S7DataRow("RET_VAL", S7DataRowType.STRUCT, myBlk);
644644

645-
parameterIN.isRootBlock = true;
646-
parameterOUT.isRootBlock = true;
647-
parameterINOUT.isRootBlock = true;
648-
parameterINOUT.isInOut = true;
649-
parameterSTAT.isRootBlock = true;
650-
parameterTEMP.isRootBlock = true;
651-
parameterRETVAL.isRootBlock = true;
652-
653645
//All blocks may have In, Out or In/Out parameters
654646
//Info: the order in which they are added to the Root is important
655647
parameterRoot.Add(parameterIN);

0 commit comments

Comments
 (0)