1
- Submodule Loop contains modified content
2
- Submodule Loop fee85e0..667a5a9:
1
+ Submodule Loop fee85e0..0c84d6c:
3
2
diff --git a/Loop/Loop.xcodeproj/project.pbxproj b/Loop/Loop.xcodeproj/project.pbxproj
4
3
index 360db94c..f403686e 100644
5
4
--- a/Loop/Loop.xcodeproj/project.pbxproj
@@ -236,7 +235,7 @@ index ffc66ee3..1b1bab1f 100644
236
235
@@ -1698,7 +1698,23 @@ extension LoopDataManager {
237
236
return self.delegate?.roundBolusVolume(units: units) ?? units
238
237
}
239
-
238
+
240
239
- let maxAutomaticBolus = min(iobHeadroom, maxBolus! * LoopConstants.bolusPartialApplicationFactor)
241
240
+ // Create dosing strategy based on user setting
242
241
+ let applicationFactorStrategy: ApplicationFactorStrategy = UserDefaults.standard.bool(forKey: "applyExperimentalGlucoseBasedApplicationFactor")
@@ -255,7 +254,7 @@ index ffc66ee3..1b1bab1f 100644
255
254
+
256
255
+ // If a user customizes maxPartialApplicationFactor > 1; this respects maxBolus
257
256
+ let maxAutomaticBolus = min(iobHeadroom, maxBolus! * min(effectiveBolusApplicationFactor, 1.0))
258
-
257
+
259
258
dosingRecommendation = predictedGlucose.recommendedAutomaticDose(
260
259
to: glucoseTargetRange!,
261
260
@@ -1708,7 +1724,7 @@ extension LoopDataManager {
@@ -337,19 +336,18 @@ index 00000000..90d05d0c
337
336
+ }
338
337
+ }
339
338
diff --git a/Loop/Loop/Views/SettingsView.swift b/Loop/Loop/Views/SettingsView.swift
340
- index dc3f6ec3..1b5f4de3 100644
339
+ index dc3f6ec3..24032203 100644
341
340
--- a/Loop/Loop/Views/SettingsView.swift
342
341
+++ b/Loop/Loop/Views/SettingsView.swift
343
- @@ -30,6 +30,8 @@ public struct SettingsView: View {
342
+ @@ -30,6 +30,7 @@ public struct SettingsView: View {
344
343
@State private var therapySettingsIsPresented: Bool = false
345
344
@State private var deletePumpDataAlertIsPresented = false
346
345
@State private var deleteCGMDataAlertIsPresented = false
347
- + @State internal var enhancedAutoBolusIsPresented: Bool = false
348
346
+ @State internal var isGlucoseBasedApplicationFactorEnabled = UserDefaults.standard.bool(forKey: "applyExperimentalGlucoseBasedApplicationFactor")
349
-
347
+
350
348
var localizedAppNameAndVersion: String
351
-
352
- @@ -50,6 +52 ,9 @@ public struct SettingsView: View {
349
+
350
+ @@ -50,6 +51 ,9 @@ public struct SettingsView: View {
353
351
if FeatureFlags.automaticBolusEnabled {
354
352
dosingStrategySection
355
353
}
@@ -359,20 +357,3 @@ index dc3f6ec3..1b5f4de3 100644
359
357
alertManagementSection
360
358
if viewModel.pumpManagerSettingsViewModel.isSetUp() {
361
359
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