kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
fix autobug when gatt is being destroyed
rodzic
65014dac48
commit
323809b762
|
@ -665,7 +665,7 @@ class SafeBluetooth(private val context: Context, private val device: BluetoothD
|
||||||
private fun queueWriteDescriptor(
|
private fun queueWriteDescriptor(
|
||||||
c: BluetoothGattDescriptor,
|
c: BluetoothGattDescriptor,
|
||||||
cont: Continuation<BluetoothGattDescriptor>
|
cont: Continuation<BluetoothGattDescriptor>
|
||||||
) = queueWork("writeD", cont) { gatt!!.writeDescriptor(c) }
|
) = queueWork("writeD", cont) { gatt?.writeDescriptor(c) ?: false }
|
||||||
|
|
||||||
fun asyncWriteDescriptor(
|
fun asyncWriteDescriptor(
|
||||||
c: BluetoothGattDescriptor,
|
c: BluetoothGattDescriptor,
|
||||||
|
|
Ładowanie…
Reference in New Issue