Skip to content

Commit 76a75d6

Browse files
committed
fix a bug
1 parent 12b0aba commit 76a75d6

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed

SCADA/Example/CoreTest.exe

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

SCADA/Program/ClientDriver/ClientDriver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,6 @@ public void Init()
365365
private void ReciveData()
366366
{
367367
if (!_active || _plcReader.tcpRecive == null) return;
368-
List<HistoryData> historys = new List<HistoryData>(); ;
369368
byte[] bytes = new byte[ushort.MaxValue];
370369
byte[] temp = new byte[ushort.MaxValue];
371370
Storage value = Storage.Empty;
@@ -380,6 +379,7 @@ private void ReciveData()
380379
result = _tcpRecive.Receive(bytes, 0, bytes.Length, SocketFlags.None, out error);
381380
if (error == SocketError.Success)
382381
{
382+
List<HistoryData> historys = new List<HistoryData>(); ;
383383
if (start != 0 && temp[0] == FCTCOMMAND.fctHead)
384384
{
385385
int j = 3;

0 commit comments

Comments
 (0)