We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fd6f93 commit 48266c8Copy full SHA for 48266c8
1 file changed
Sources/LoopAlgorithmToPython/LoopAlgorithmToPython.swift
@@ -288,7 +288,7 @@ public func getGlucoseEffectVelocityAndDates(jsonData: UnsafePointer<Int8>?) ->
288
var predictionsAndDates: String = ""
289
for val in output.effects.insulinCounteraction {
290
predictionsAndDates += val.startDate.ISO8601Format() + ","
291
- predictionsAndDates += val.quantity.doubleValue(for: HKUnit(from: "mg/dL·s")).description + " "
+ predictionsAndDates += val.quantity.doubleValue(for: LoopUnit(from: "mg/dL·s")).description + " "
292
}
293
let cString = strdup(predictionsAndDates)!
294
0 commit comments