Skip to content

Commit 48266c8

Browse files
committed
Fix HealthKit dependency: replace HKUnit with LoopUnit
1 parent 7fd6f93 commit 48266c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/LoopAlgorithmToPython/LoopAlgorithmToPython.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ public func getGlucoseEffectVelocityAndDates(jsonData: UnsafePointer<Int8>?) ->
288288
var predictionsAndDates: String = ""
289289
for val in output.effects.insulinCounteraction {
290290
predictionsAndDates += val.startDate.ISO8601Format() + ","
291-
predictionsAndDates += val.quantity.doubleValue(for: HKUnit(from: "mg/dL·s")).description + " "
291+
predictionsAndDates += val.quantity.doubleValue(for: LoopUnit(from: "mg/dL·s")).description + " "
292292
}
293293
let cString = strdup(predictionsAndDates)!
294294

0 commit comments

Comments
 (0)