|
@@ -390,12 +390,19 @@ struct OnboardingNavigationButtons: View {
|
|
|
currentDeliverySubstep = .minimumSafetyThreshold
|
|
currentDeliverySubstep = .minimumSafetyThreshold
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ case .algorithmSettings:
|
|
|
|
|
+ if let previous = currentStep.previous {
|
|
|
|
|
+ currentStep = previous
|
|
|
|
|
+ currentDeliverySubstep = .minimumSafetyThreshold
|
|
|
|
|
+ currentAutosensSubstep = .autosensMin
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
case .autosensSettings:
|
|
case .autosensSettings:
|
|
|
if let previous = AutosensSettingsSubstep(rawValue: currentAutosensSubstep.rawValue - 1) {
|
|
if let previous = AutosensSettingsSubstep(rawValue: currentAutosensSubstep.rawValue - 1) {
|
|
|
currentAutosensSubstep = previous
|
|
currentAutosensSubstep = previous
|
|
|
} else if let previousStep = currentStep.previous {
|
|
} else if let previousStep = currentStep.previous {
|
|
|
currentStep = previousStep
|
|
currentStep = previousStep
|
|
|
- currentAutosensSubstep = .rewindResetsAutosens
|
|
|
|
|
|
|
+ currentAutosensSubstep = .autosensMin
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
case .smbSettings:
|
|
case .smbSettings:
|
|
@@ -403,7 +410,8 @@ struct OnboardingNavigationButtons: View {
|
|
|
currentSMBSubstep = previous
|
|
currentSMBSubstep = previous
|
|
|
} else if let previousStep = currentStep.previous {
|
|
} else if let previousStep = currentStep.previous {
|
|
|
currentStep = previousStep
|
|
currentStep = previousStep
|
|
|
- currentSMBSubstep = .maxDeltaGlucoseThreshold
|
|
|
|
|
|
|
+ currentSMBSubstep = .enableSMBAlways
|
|
|
|
|
+ currentAutosensSubstep = .rewindResetsAutosens
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
case .targetBehavior:
|
|
case .targetBehavior:
|
|
@@ -411,7 +419,8 @@ struct OnboardingNavigationButtons: View {
|
|
|
currentTargetBehaviorSubstep = previous
|
|
currentTargetBehaviorSubstep = previous
|
|
|
} else if let previousStep = currentStep.previous {
|
|
} else if let previousStep = currentStep.previous {
|
|
|
currentStep = previousStep
|
|
currentStep = previousStep
|
|
|
- currentTargetBehaviorSubstep = .halfBasalTarget
|
|
|
|
|
|
|
+ currentTargetBehaviorSubstep = .highTempTargetRaisesSensitivity
|
|
|
|
|
+ currentSMBSubstep = .maxDeltaGlucoseThreshold
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
default:
|
|
default:
|