[6.8.0]
[fix] [blu 删除重复操作]
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user