|
@@ -3,9 +3,6 @@ import CoreData
|
|
|
import Foundation
|
|
import Foundation
|
|
|
import LoopKit
|
|
import LoopKit
|
|
|
import LoopKitUI
|
|
import LoopKitUI
|
|
|
-import OmniBLE
|
|
|
|
|
-import OmniKit
|
|
|
|
|
-import RileyLinkKit
|
|
|
|
|
import SwiftDate
|
|
import SwiftDate
|
|
|
import Swinject
|
|
import Swinject
|
|
|
|
|
|
|
@@ -902,26 +899,11 @@ final class BaseAPSManager: APSManager, Injectable {
|
|
|
bolusReporter?.addObserver(self)
|
|
bolusReporter?.addObserver(self)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- private func updateStatus() {
|
|
|
|
|
- debug(.apsManager, "force update status")
|
|
|
|
|
- guard let pump = pumpManager else {
|
|
|
|
|
- return
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- if let omnipod = pump as? OmnipodPumpManager {
|
|
|
|
|
- omnipod.getPodStatus { _ in }
|
|
|
|
|
- }
|
|
|
|
|
- if let omnipodBLE = pump as? OmniBLEPumpManager {
|
|
|
|
|
- omnipodBLE.getPodStatus { _ in }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
private func clearBolusReporter() {
|
|
private func clearBolusReporter() {
|
|
|
bolusReporter?.removeObserver(self)
|
|
bolusReporter?.removeObserver(self)
|
|
|
bolusReporter = nil
|
|
bolusReporter = nil
|
|
|
processQueue.asyncAfter(deadline: .now() + 0.5) {
|
|
processQueue.asyncAfter(deadline: .now() + 0.5) {
|
|
|
self.bolusProgress.send(nil)
|
|
self.bolusProgress.send(nil)
|
|
|
- self.updateStatus()
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|