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

Use dynamic ISF also when using a low temp target.

Enhances the dybamic ratio ( * bg_target / normalTarget) when using a low temp target
Jon B.M пре 3 година
родитељ
комит
28f431892c

+ 2 - 2
Config.xcconfig

@@ -1,7 +1,7 @@
 APP_DISPLAY_NAME = FreeAPS X
-APP_VERSION = 0.3.0
+APP_VERSION = 0.3.1
 APP_BUILD_NUMBER = 1
-BRANCH = bdb
+BRANCH = enhance_with_tt
 DEVELOPER_TEAM = ##TEAM_ID##
 BUNDLE_IDENTIFIER = ru.artpancreas.$(DEVELOPMENT_TEAM).FreeAPS
 APP_GROUP_ID = group.com.$(DEVELOPMENT_TEAM).loopkit.LoopGroup

Разлика између датотеке није приказан због своје велике величине
+ 1 - 1
FreeAPS/Resources/javascript/bundle/determine-basal.js


+ 2 - 4
FreeAPS/Sources/APS/APSManager.swift

@@ -735,7 +735,7 @@ final class BaseAPSManager: APSManager, Injectable {
             }
         }
 
-        var algo_ = "oref0"
+        var algo_ = "oref0" //Default
         if preferences.enableChris, preferences.useNewFormula {
             algo_ = "Dynamic ISF, Logarithmic Formula"
         } else if !preferences.useNewFormula, preferences.enableChris {
@@ -795,7 +795,6 @@ final class BaseAPSManager: APSManager, Injectable {
         var bgAverageTotalString = ""
 
         let daysBG = tir().daysWithBG
-        print("Days with BG: \(daysBG)")
 
         let avg1 = tir().averageGlucose_1
         let avg7 = tir().averageGlucose_7
@@ -850,7 +849,7 @@ final class BaseAPSManager: APSManager, Injectable {
             CGM: cgm.rawValue,
             insulinType: insulin_type.rawValue,
             peakActivityTime: iPa,
-            TDD: currentTDD ?? 0,
+            TDD: currentTDD,
             Carbs_24h: carbTotal,
             TIR: tirString,
             BG_Average: bgAverageString,
@@ -858,7 +857,6 @@ final class BaseAPSManager: APSManager, Injectable {
         )
 
         file = OpenAPS.Monitor.dailyStats
-
         storage.save(dailystat, as: file)
     }