Jelajahi Sumber

Fix units error in basal for TidePool

Pierre L 2 tahun lalu
induk
melakukan
55f836b73e
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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,