fix:修复蓝牙长时间占用的问题

This commit is contained in:
anfe 2024-05-16 09:24:12 +08:00
parent 719f39c6d1
commit 8dcc1c7be3

View File

@ -696,7 +696,8 @@ class BlueManage {
// if(bluetoothConnectDevice != null && bluetoothConnectDevice!.connectionState == BluetoothConnectionState.connected){
connectDeviceMacAddress = "";
if (bluetoothConnectionState == BluetoothConnectionState.connected) {
await bluetoothConnectDevice!.disconnect();
//
await bluetoothConnectDevice!.disconnect(timeout: 1);
AppLog.log("断开连接成功");
}
// }