This commit is contained in:
Andrei Vereha 2021-09-24 19:16:53 +02:00
parent e174f3982b
commit 69a5d46be6

View file

@ -111,20 +111,13 @@ class OmnipodDashPumpPlugin @Inject constructor(
updatePodWarnings() updatePodWarnings()
aapsLogger.info(LTag.PUMP, "statusChecker") aapsLogger.info(LTag.PUMP, "statusChecker")
val err = createFakeTBRWhenNoActivePod() createFakeTBRWhenNoActivePod()
.subscribeOn(aapsSchedulers.io) .subscribeOn(aapsSchedulers.io)
.subscribeBy( .subscribeBy(
onError = { onError = {
aapsLogger.warn(LTag.PUMP, "Error on createFakeTBRWhenNoActivePod=$it") aapsLogger.warn(LTag.PUMP, "Error on createFakeTBRWhenNoActivePod=$it")
},
onComplete = {
aapsLogger.warn(LTag.PUMP, "createFakeTBRWhenNoActivePod complete")
} }
) )
aapsLogger.info(LTag.PUMP, "status checker err=$err")
err?.let {
aapsLogger.warn(LTag.PUMP, "Error on createFakeTBRWhenNoActivePod=$it")
}
handler.postDelayed(statusChecker, STATUS_CHECK_INTERVAL_MS) handler.postDelayed(statusChecker, STATUS_CHECK_INTERVAL_MS)
} }
} }