[fix]
[blu 删除重复操作]
This commit is contained in:
yangyakun
2024-11-26 11:14:43 +08:00
parent a065a98f37
commit 503abcbbd9

View File

@@ -82,8 +82,6 @@ class OchBluetoothGattCallback(device: BluetoothDevice) : BluetoothGattCallback(
gatt.discoverServices() //启动服务发现
}else{
isConnected = false
closeConn(false)
connect()
Log.i(TAG,"与[${dev.name}]连接断开")
}
}else{
@@ -171,7 +169,6 @@ class OchBluetoothGattCallback(device: BluetoothDevice) : BluetoothGattCallback(
mBluetoothGatt?.close()
mBluetoothGatt = null
currentTryCount = 0
isConnected = false
if(needCopy&&!isDestory) {
BleManager.copy2ScanList(this)
}