From 49ab2a202ea76390ce6f07c61c7dca8d00bce13d Mon Sep 17 00:00:00 2001 From: Kevin Date: Sun, 15 Jul 2018 23:44:47 +0800 Subject: [PATCH] =?UTF-8?q?NetShortCacheReader=20=E5=9C=A8=E8=AF=BB?= =?UTF-8?q?=E5=8F=96=E5=8F=8C=E5=AD=97=E6=97=B6=E6=9C=AA=E9=AB=98=E4=BD=8E?= =?UTF-8?q?=E4=BD=8D=E4=BA=92=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SCADA/Program/DataService/CacheReader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SCADA/Program/DataService/CacheReader.cs b/SCADA/Program/DataService/CacheReader.cs index a639466..1ab30a4 100644 --- a/SCADA/Program/DataService/CacheReader.cs +++ b/SCADA/Program/DataService/CacheReader.cs @@ -582,7 +582,7 @@ namespace DataService } else { - result = (IPAddress.HostToNetworkOrder(_cache[startIndex]) << 16) | ((ushort)IPAddress.HostToNetworkOrder(_cache[startIndex + 1])); + result = (_cache[startIndex + 1] << 16) | ((ushort)_cache[startIndex]); } return new ItemData(result, 0, QUALITIES.QUALITY_GOOD); }