Skip to content

Commit

Permalink
Add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
korzonkiee committed Dec 5, 2024
1 parent 6cad752 commit 35ff616
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1522,6 +1522,8 @@ class BDBleApiImpl private constructor(context: Context, features: Set<PolarBleS
override fun doFirstTimeUse(identifier: String, ftuConfig: PolarFirstTimeUseConfig): Completable {
return Completable.defer {
try {
BleLogger.d(TAG, "doFirstTimeUse() device: $identifier")

val session = sessionPsFtpClientReady(identifier)
val client = session.fetchClient(BlePsFtpUtils.RFC77_PFTP_SERVICE) as BlePsFtpClient?
?: throw PolarServiceNotAvailable()
Expand Down Expand Up @@ -1579,6 +1581,7 @@ class BDBleApiImpl private constructor(context: Context, features: Set<PolarBleS
)
.ignoreElements()
.doOnComplete {
BleLogger.d(TAG, "doFirstTimeUse() completed")
sendTerminateAndStopSyncNotifications(client)
}
.doOnError { error ->
Expand Down

0 comments on commit 35ff616

Please sign in to comment.