Przeglądaj źródła

Fix oref TDD calculation and bolus/basal split

Deniz Cengiz 1 rok temu
rodzic
commit
b50654d8f6
1 zmienionych plików z 3 dodań i 3 usunięć
  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