From 5b54255777cf2f3e5a0207a7d4b0704f5c950cad Mon Sep 17 00:00:00 2001 From: lishuo Date: Wed, 8 Jun 2022 18:27:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=93=9D=E7=89=99=E9=87=8D=E5=A4=8D=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Devices/Ble/mobile/BleMobileThread.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Devices/Ble/mobile/BleMobileThread.cs b/Assets/Scripts/Devices/Ble/mobile/BleMobileThread.cs index ef0afcf2..7309a9e9 100644 --- a/Assets/Scripts/Devices/Ble/mobile/BleMobileThread.cs +++ b/Assets/Scripts/Devices/Ble/mobile/BleMobileThread.cs @@ -35,7 +35,7 @@ namespace Assets.Scripts.Devices.Ble this.managerStatusChanged -= value; } } - WclBleManagerStatus statusEnum = WclBleManagerStatus.RadioOff; + WclBleManagerStatus statusEnum = WclBleManagerStatus.RadioOn; internal BleMobileThread() { var self = this; //初始蓝牙 @@ -69,6 +69,7 @@ namespace Assets.Scripts.Devices.Ble public void StartWatcher() { var self = this; + statusEnum = WclBleManagerStatus.RadioOn; if (statusEnum == WclBleManagerStatus.RadioOff) { BluetoothLEHardwareInterface.BluetoothEnable(true);