Explorar o código

Merge pull request #118 from avouspierre/alpha

Fix units error in basal for TidePool
bjornoleh %!s(int64=2) %!d(string=hai) anos
pai
achega
135f8b186d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      FreeAPS/Sources/Services/Network/TidepoolManager.swift

+ 1 - 1
FreeAPS/Sources/Services/Network/TidepoolManager.swift

@@ -214,7 +214,7 @@ final class BaseTidePoolManager: TidePoolManager, Injectable {
                     type: .tempBasal,
                     startDate: event.timestamp,
                     value: 0.0,
-                    unit: .unitsPerHour,
+                    unit: .units,
                     syncIdentifier: event.id,
                     scheduledBasalRate: HKQuantity(unit: .internationalUnitsPerHour, doubleValue: Double(event.rate!)),
                     insulinType: nil,