|
@@ -24,7 +24,6 @@ protocol APSManager {
|
|
|
func determineBasalSync() async throws
|
|
func determineBasalSync() async throws
|
|
|
func simulateDetermineBasal(simulatedCarbsAmount: Decimal, simulatedBolusAmount: Decimal) async -> Determination?
|
|
func simulateDetermineBasal(simulatedCarbsAmount: Decimal, simulatedBolusAmount: Decimal) async -> Determination?
|
|
|
func roundBolus(amount: Decimal) -> Decimal
|
|
func roundBolus(amount: Decimal) -> Decimal
|
|
|
- func roundBolusNoCap(amount: Decimal) -> Decimal
|
|
|
|
|
var lastError: CurrentValueSubject<Error?, Never> { get }
|
|
var lastError: CurrentValueSubject<Error?, Never> { get }
|
|
|
func cancelBolus(_ callback: ((Bool, String) -> Void)?) async
|
|
func cancelBolus(_ callback: ((Bool, String) -> Void)?) async
|
|
|
}
|
|
}
|
|
@@ -498,11 +497,6 @@ final class BaseAPSManager: APSManager, Injectable {
|
|
|
return min(rounded, maxBolus)
|
|
return min(rounded, maxBolus)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- func roundBolusNoCap(amount: Decimal) -> Decimal {
|
|
|
|
|
- guard let pump = pumpManager else { return amount }
|
|
|
|
|
- return Decimal(pump.roundToSupportedBolusVolume(units: Double(amount)))
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
private var bolusReporter: DoseProgressReporter?
|
|
private var bolusReporter: DoseProgressReporter?
|
|
|
|
|
|
|
|
func enactBolus(amount: Double, isSMB: Bool, callback: ((Bool, String) -> Void)?) async {
|
|
func enactBolus(amount: Double, isSMB: Bool, callback: ((Bool, String) -> Void)?) async {
|