From 26484df0599f2ee2add64dc3df1ac777a185d837 Mon Sep 17 00:00:00 2001 From: Federico Barresi Date: Thu, 11 May 2023 22:26:53 +0200 Subject: [PATCH] fixed ReadSZL function - fix #36 --- Sharp7/S7Client.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sharp7/S7Client.cs b/Sharp7/S7Client.cs index 7018fc0..20b9aa0 100644 --- a/Sharp7/S7Client.cs +++ b/Sharp7/S7Client.cs @@ -1723,7 +1723,7 @@ namespace Sharp7 else { S7_SZL_NEXT.SetWordAt(11, ++Seq_out); - PDU[24] = (byte)Seq_in; + S7_SZL_NEXT[24] = (byte)Seq_in; SendPacket(S7_SZL_NEXT); } if (_LastError != 0)