设备扫描优化&我的收藏返回记忆位置

This commit is contained in:
lishuo committed 2022-07-19 15:47:43 +08:00
1 parent c209811f9f
commit 7f56624ec7
10 files changed
+71 -61

No files matched your search

+8 -5
View File
@@ -238,11 +238,14 @@ public class BluetoothDeviceScript : MonoBehaviour
{
if (parts.Length >= 2)
{
if (ConnectedDisconnectPeripheralAction != null)
ConnectedDisconnectPeripheralAction(parts[1]);
if (DisconnectedPeripheralAction != null)
DisconnectedPeripheralAction(parts[1]);
if (DisconnectedPeripheralAction != null)
{
DisconnectedPeripheralAction(parts[1]);
}
else if (ConnectedDisconnectPeripheralAction != null)
{
ConnectedDisconnectPeripheralAction(parts[1]);
}
}
}
else if (message.Length > connectionError.Length && message.Substring(0,connectionError.Length) == connectionError){