Преглед изворни кода

Fix oref TDD calculation and bolus/basal split

Deniz Cengiz пре 1 година
родитељ
комит
b50654d8f6
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      FreeAPS/Sources/APS/OpenAPS/OpenAPS.swift

+ 3 - 3
FreeAPS/Sources/APS/OpenAPS/OpenAPS.swift

@@ -249,12 +249,12 @@ final class OpenAPS {
             if let bolusDTO = event.toBolusDTOEnum() {
             if let bolusDTO = event.toBolusDTOEnum() {
                 eventDTOs.append(bolusDTO)
                 eventDTOs.append(bolusDTO)
             }
             }
-            if let tempBasalDTO = event.toTempBasalDTOEnum() {
-                eventDTOs.append(tempBasalDTO)
-            }
             if let tempBasalDurationDTO = event.toTempBasalDurationDTOEnum() {
             if let tempBasalDurationDTO = event.toTempBasalDurationDTOEnum() {
                 eventDTOs.append(tempBasalDurationDTO)
                 eventDTOs.append(tempBasalDurationDTO)
             }
             }
+            if let tempBasalDTO = event.toTempBasalDTOEnum() {
+                eventDTOs.append(tempBasalDTO)
+            }
             return eventDTOs
             return eventDTOs
         }
         }
         return dtos
         return dtos