Skip to content

Commit 6d4581a

Browse files
committed
update opcdriver
1 parent aa1fc3b commit 6d4581a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SCADA/Program/OPCDriver/OPCDriver.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,10 +1091,10 @@ public IEnumerable<IGroup> Groups
10911091

10921092
public IGroup AddGroup(string name, short id, int updateRate, float deadBand, bool active)
10931093
{
1094-
if (!_metaGroups.Exists(x => x.ID == id))
1095-
_metaGroups.Add(new MetaGroup { ID = id, Name = name, UpdateRate = updateRate, DeadBand = deadBand, Active = active });
10961094
if (IsClosed)
10971095
Connect();
1096+
if (!_metaGroups.Exists(x => x.ID == id))
1097+
_metaGroups.Add(new MetaGroup { ID = id, Name = name, UpdateRate = updateRate, DeadBand = deadBand, Active = active });
10981098
if (_opcServer == null) return null;
10991099
GCHandle hDeadband, hTimeBias;
11001100
hDeadband = GCHandle.Alloc(deadBand, GCHandleType.Pinned);

SCADA/dll/OPCDriver.dll

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)