Skip to content

Commit 6147c7c

Browse files
committed
Fix debug format for ExponentialInsulinModel and fix error message
1 parent 0c78db1 commit 6147c7c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

LoopKit/InsulinKit/ExponentialInsulinModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ extension ExponentialInsulinModel: InsulinModel {
6868

6969
extension ExponentialInsulinModel: CustomDebugStringConvertible {
7070
public var debugDescription: String {
71-
return "ExponentialInsulinModel(actionDuration: \(actionDuration), peakActivityTime: \(peakActivityTime), delay: \(delay)"
71+
return "ExponentialInsulinModel(actionDuration: \(actionDuration), peakActivityTime: \(peakActivityTime), delay: \(delay))"
7272
}
7373
}
7474

LoopKit/LoopAlgorithm/LoopAlgorithm.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public actor LoopAlgorithm {
8686
if let doseStart = input.doses.first?.startDate {
8787
assert(!input.settings.basal.isEmpty, "Missing basal history input.")
8888
let basalStart = input.settings.basal.first!.startDate
89-
precondition(basalStart <= doseStart, "Basal history must cover historic dose range. First dose date: \(doseStart) > \(basalStart)")
89+
precondition(basalStart <= doseStart, "Basal history must cover historic dose range. First dose date: \(doseStart) < \(basalStart)")
9090
}
9191

9292
// Overlay basal history on basal doses, splitting doses to get amount delivered relative to basal

0 commit comments

Comments
 (0)