修复布尔量解析时反转字节导致结果值不符的错误

This commit is contained in:
2248356998 qq.com
2023-07-06 14:05:09 +08:00
parent 8806e68dce
commit 09f476c745
3 changed files with 1 additions and 7 deletions

View File

@@ -296,10 +296,6 @@ public class ThingsGatewayBitConverter : IThingsGatewayBitConverter
{
byte[] bytes = new byte[buffer.Length];
Array.Copy(buffer, 0, bytes, 0, buffer.Length);
if (!IsSameOfSet() && buffer.Length > 1)
{
bytes = bytes.BytesReverseByWord();
}
return bytes.GetBoolByIndex(offset);
}

View File

@@ -689,8 +689,6 @@ public class CollectDeviceCore : DisposableObject
{
_pluginService.DeleteDriver(DeviceId, Device.PluginId);
}
_device.DeviceVariableRunTimes = null;
_device = null;
GC.Collect();
GC.WaitForPendingFinalizers();
}

View File

@@ -54,7 +54,7 @@ namespace ThingsGateway.Web.Rcl.Core
private IResourceService _resourceService { get; set; }
public void Dispose()
{
GC.SuppressFinalize(this);
}
public async Task InitAllAsync()
{