Browse Source

修改读取时的字节序

pull/23/head
blankboy 7 years ago
parent
commit
9779597d3b
  1. 2
      SCADA/Program/DataService/CacheReader.cs

2
SCADA/Program/DataService/CacheReader.cs

@ -389,7 +389,7 @@ namespace DataService
} }
else else
{ {
result = (_cache[startIndex + 1] << 16) | ((ushort)_cache[startIndex]); result = (_cache[startIndex] << 16) | ((ushort)_cache[startIndex + 1]);
} }
return new ItemData<int>(result, 0, QUALITIES.QUALITY_GOOD); return new ItemData<int>(result, 0, QUALITIES.QUALITY_GOOD);
} }

Loading…
Cancel
Save