Skip to content

Commit b06bf10

Browse files
committed
patches
1 parent bf14c53 commit b06bf10

File tree

5 files changed

+327
-916
lines changed

5 files changed

+327
-916
lines changed

1988/dev_1988.patch

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Submodule Loop contains modified content
2-
Submodule Loop fee85e0..667a5a9:
1+
Submodule Loop fee85e0..0c84d6c:
32
diff --git a/Loop/Loop.xcodeproj/project.pbxproj b/Loop/Loop.xcodeproj/project.pbxproj
43
index 360db94c..f403686e 100644
54
--- a/Loop/Loop.xcodeproj/project.pbxproj
@@ -236,7 +235,7 @@ index ffc66ee3..1b1bab1f 100644
236235
@@ -1698,7 +1698,23 @@ extension LoopDataManager {
237236
return self.delegate?.roundBolusVolume(units: units) ?? units
238237
}
239-
238+
240239
- let maxAutomaticBolus = min(iobHeadroom, maxBolus! * LoopConstants.bolusPartialApplicationFactor)
241240
+ // Create dosing strategy based on user setting
242241
+ let applicationFactorStrategy: ApplicationFactorStrategy = UserDefaults.standard.bool(forKey: "applyExperimentalGlucoseBasedApplicationFactor")
@@ -255,7 +254,7 @@ index ffc66ee3..1b1bab1f 100644
255254
+
256255
+ // If a user customizes maxPartialApplicationFactor > 1; this respects maxBolus
257256
+ let maxAutomaticBolus = min(iobHeadroom, maxBolus! * min(effectiveBolusApplicationFactor, 1.0))
258-
257+
259258
dosingRecommendation = predictedGlucose.recommendedAutomaticDose(
260259
to: glucoseTargetRange!,
261260
@@ -1708,7 +1724,7 @@ extension LoopDataManager {
@@ -337,19 +336,18 @@ index 00000000..90d05d0c
337336
+ }
338337
+}
339338
diff --git a/Loop/Loop/Views/SettingsView.swift b/Loop/Loop/Views/SettingsView.swift
340-
index dc3f6ec3..1b5f4de3 100644
339+
index dc3f6ec3..24032203 100644
341340
--- a/Loop/Loop/Views/SettingsView.swift
342341
+++ b/Loop/Loop/Views/SettingsView.swift
343-
@@ -30,6 +30,8 @@ public struct SettingsView: View {
342+
@@ -30,6 +30,7 @@ public struct SettingsView: View {
344343
@State private var therapySettingsIsPresented: Bool = false
345344
@State private var deletePumpDataAlertIsPresented = false
346345
@State private var deleteCGMDataAlertIsPresented = false
347-
+ @State internal var enhancedAutoBolusIsPresented: Bool = false
348346
+ @State internal var isGlucoseBasedApplicationFactorEnabled = UserDefaults.standard.bool(forKey: "applyExperimentalGlucoseBasedApplicationFactor")
349-
347+
350348
var localizedAppNameAndVersion: String
351-
352-
@@ -50,6 +52,9 @@ public struct SettingsView: View {
349+
350+
@@ -50,6 +51,9 @@ public struct SettingsView: View {
353351
if FeatureFlags.automaticBolusEnabled {
354352
dosingStrategySection
355353
}
@@ -359,20 +357,3 @@ index dc3f6ec3..1b5f4de3 100644
359357
alertManagementSection
360358
if viewModel.pumpManagerSettingsViewModel.isSetUp() {
361359
configurationSection
362-
diff --git a/Loop/StatusWidget/StatusWidget.swift b/Loop/StatusWidget/StatusWidget.swift
363-
index 8aa04472..32768a2e 100644
364-
--- a/Loop/StatusWidget/StatusWidget.swift
365-
+++ b/Loop/StatusWidget/StatusWidget.swift
366-
@@ -136,10 +136,10 @@ class StatusWidgetProvider: TimelineProvider {
367-
368-
var delta: HKQuantity?
369-
370-
- // Making sure that previous glucose is within 5 mins of last glucose to avoid large deltas on sensor changes, missed readings, etc.
371-
+ // Making sure that previous glucose is within 6 mins of last glucose to avoid large deltas on sensor changes, missed readings, etc.
372-
if let prevGlucose = previousGlucose,
373-
let currGlucose = currentGlucose,
374-
- abs((prevGlucose.startDate.addingTimeInterval(.minutes(5)) - currGlucose.startDate).minutes) > 1
375-
+ currGlucose.startDate.timeIntervalSince(prevGlucose.startDate).minutes < 6
376-
{
377-
let deltaMGDL = currGlucose.quantity.doubleValue(for: .milligramsPerDeciliter) - prevGlucose.quantity.doubleValue(for: .milligramsPerDeciliter)
378-
delta = HKQuantity(unit: .milligramsPerDeciliter, doubleValue: deltaMGDL)

0 commit comments

Comments
 (0)