断线重连取数据逻辑

This commit is contained in:
Caiyanpeng committed 2022-05-31 18:40:32 +08:00
1 parent 167a424505
commit 3f8c189ad4
3 files changed
+25 -8

No files matched your search

@@ -118,7 +118,7 @@ namespace Assets.Scripts.Devices.Ble.Devices
if (characteristic.MatchGuid(ServiceUuids.Characteristics.RowerData))
{
var c = base.Characteristics.SingleOrDefault(x => x.Uuid == ServiceUuids.Characteristics.RowerData);
if (c != null)
if (c != null && !C2RowerData.IsEnabled)
{
c.HandleAttributeReceived(response.Data);
}