mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2026-01-05 07:44:20 +01:00
Fix waitForBonding position on HRS profile
This commit is contained in:
@@ -97,6 +97,8 @@ internal class HRSService : NotificationService() {
|
||||
|
||||
client = device.connect(this@HRSService, logger = logger)
|
||||
|
||||
client.waitForBonding()
|
||||
|
||||
repository.loggerEvent
|
||||
.onEach { logger.launch() }
|
||||
.launchIn(lifecycleScope)
|
||||
@@ -107,8 +109,6 @@ internal class HRSService : NotificationService() {
|
||||
.onEach { stopIfDisconnected(it) }
|
||||
.launchIn(lifecycleScope)
|
||||
|
||||
client.waitForBonding()
|
||||
|
||||
if (!client.isConnected) {
|
||||
return@launch
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user