mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2025-12-21 16:34:23 +01:00
Remove waitForBonding for HTS profile as it is initiated by notification
This commit is contained in:
@@ -88,8 +88,6 @@ internal class HTSService : NotificationService() {
|
|||||||
private fun startGattClient(device: ServerDevice) = lifecycleScope.launch {
|
private fun startGattClient(device: ServerDevice) = lifecycleScope.launch {
|
||||||
client = device.connect(this@HTSService, logger = { p, s -> repository.log(p, s) })
|
client = device.connect(this@HTSService, logger = { p, s -> repository.log(p, s) })
|
||||||
|
|
||||||
client.waitForBonding()
|
|
||||||
|
|
||||||
client.connectionStateWithStatus
|
client.connectionStateWithStatus
|
||||||
.onEach { repository.onConnectionStateChanged(it) }
|
.onEach { repository.onConnectionStateChanged(it) }
|
||||||
.filterNotNull()
|
.filterNotNull()
|
||||||
|
|||||||
Reference in New Issue
Block a user