Improvement
This commit is contained in:
parent
7e5667705d
commit
8d629977ec
1 changed files with 6 additions and 4 deletions
|
@ -37,10 +37,12 @@ class OmnipodDashManagerImpl @Inject constructor(
|
||||||
return Observable.concat(
|
return Observable.concat(
|
||||||
observePodReadyForActivationPart1,
|
observePodReadyForActivationPart1,
|
||||||
bleManager.connect(),
|
bleManager.connect(),
|
||||||
bleManager.sendCommand(GetVersionCommand.Builder() //
|
Observable.defer {
|
||||||
.setSequenceNumber(podStateManager.messageSequenceNumber) //
|
bleManager.sendCommand(GetVersionCommand.Builder() //
|
||||||
.setUniqueId(DEFAULT_UNIQUE_ID) //
|
.setSequenceNumber(podStateManager.messageSequenceNumber) //
|
||||||
.build()) //
|
.setUniqueId(DEFAULT_UNIQUE_ID) //
|
||||||
|
.build()) //
|
||||||
|
}
|
||||||
// ... Send more commands
|
// ... Send more commands
|
||||||
).subscribeOn(Schedulers.io()) //
|
).subscribeOn(Schedulers.io()) //
|
||||||
.observeOn(AndroidSchedulers.mainThread())
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
|
|
Loading…
Reference in a new issue