Forráskód Böngészése

Remove watch line 2 if blank, add space to right of Bg if no loop prediction, add bolus for omnipod 5 glooko bridge

jonfawcett 3 éve
szülő
commit
6a6b0f9b25

+ 1 - 1
LoopFollow/Controllers/Graphs.swift

@@ -479,7 +479,7 @@ extension MainViewController {
             }
             }
         }
         }
         
         
-        if (!UserDefaultsRepository.loopUser.value) {
+        if (predictionData.count < 1) {
             let value = ChartDataEntry(x: Double(entries[entries.count-1].date+1200), y: 0)
             let value = ChartDataEntry(x: Double(entries[entries.count-1].date+1200), y: 0)
             mainChart.addEntry(value)
             mainChart.addEntry(value)
             colors.append(NSUIColor.systemGray.withAlphaComponent(0.0))
             colors.append(NSUIColor.systemGray.withAlphaComponent(0.0))

+ 1 - 0
LoopFollow/Controllers/NightScout.swift

@@ -1005,6 +1005,7 @@ extension MainViewController {
                     bolus.append(entry!)
                     bolus.append(entry!)
                 case "Meal Bolus":
                 case "Meal Bolus":
                     carbs.append(entry!)
                     carbs.append(entry!)
+                    bolus.append(entry!)
                 case "Carb Correction":
                 case "Carb Correction":
                     carbs.append(entry!)
                     carbs.append(entry!)
                 case "Temporary Override":
                 case "Temporary Override":