Ivan Valkou 5 лет назад
Родитель
Сommit
4920c2530b
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      FreeAPS/Sources/APS/OpenAPS/OpenAPS.swift

+ 4 - 0
FreeAPS/Sources/APS/OpenAPS/OpenAPS.swift

@@ -116,12 +116,14 @@ final class OpenAPS {
                 let pumpHistory = self.loadFileFromStorage(name: OpenAPS.Monitor.pumpHistory)
                 let glucose = self.loadFileFromStorage(name: Monitor.glucose)
                 let profile = self.loadFileFromStorage(name: Settings.profile)
+                let carbs = self.loadFileFromStorage(name: Monitor.carbHistory)
 
                 let autotunePreppedGlucose = self.autotunePrepare(
                     pumphistory: pumpHistory,
                     profile: profile,
                     glucose: glucose,
                     pumpprofile: profile,
+                    carbs: carbs,
                     categorizeUamAsBasal: categorizeUamAsBasal,
                     tuneInsulinCurve: tuneInsulinCurve
                 )
@@ -240,6 +242,7 @@ final class OpenAPS {
         profile: JSON,
         glucose: JSON,
         pumpprofile: JSON,
+        carbs: JSON,
         categorizeUamAsBasal: Bool,
         tuneInsulinCurve: Bool
     ) -> RawJSON {
@@ -253,6 +256,7 @@ final class OpenAPS {
                 profile,
                 glucose,
                 pumpprofile,
+                carbs,
                 categorizeUamAsBasal,
                 tuneInsulinCurve
             ])