修复布尔量解析时反转字节导致结果值不符的错误
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -689,8 +689,6 @@ public class CollectDeviceCore : DisposableObject
|
||||
{
|
||||
_pluginService.DeleteDriver(DeviceId, Device.PluginId);
|
||||
}
|
||||
_device.DeviceVariableRunTimes = null;
|
||||
_device = null;
|
||||
GC.Collect();
|
||||
GC.WaitForPendingFinalizers();
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace ThingsGateway.Web.Rcl.Core
|
||||
private IResourceService _resourceService { get; set; }
|
||||
public void Dispose()
|
||||
{
|
||||
GC.SuppressFinalize(this);
|
||||
|
||||
}
|
||||
public async Task InitAllAsync()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user