|
|
@@ -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
|
|
|
])
|