From f067ff11099582f63f2b6e2bb9a4476cb94d70c8 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Thu, 18 Nov 2021 15:51:58 +0100 Subject: [PATCH] update smb max iob according to max bolus --- app/src/main/res/xml/pref_openapssmb.xml | 2 +- .../main/java/info/nightscout/androidaps/utils/HardLimits.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/res/xml/pref_openapssmb.xml b/app/src/main/res/xml/pref_openapssmb.xml index 857776036b..ee6b649f1d 100644 --- a/app/src/main/res/xml/pref_openapssmb.xml +++ b/app/src/main/res/xml/pref_openapssmb.xml @@ -24,7 +24,7 @@ android:inputType="numberDecimal" android:key="@string/key_openapssmb_max_iob" android:title="@string/openapssmb_maxiob_title" - validate:floatmaxNumber="25.0" + validate:floatmaxNumber="70.0" validate:floatminNumber="0" validate:testType="floatNumericRange" /> diff --git a/core/src/main/java/info/nightscout/androidaps/utils/HardLimits.kt b/core/src/main/java/info/nightscout/androidaps/utils/HardLimits.kt index 5c4917727e..4899f6316e 100644 --- a/core/src/main/java/info/nightscout/androidaps/utils/HardLimits.kt +++ b/core/src/main/java/info/nightscout/androidaps/utils/HardLimits.kt @@ -55,7 +55,7 @@ class HardLimits @Inject constructor( const val MIN_ISF = 2.0 // mgdl const val MAX_ISF = 720.0 // mgdl val MAX_IOB_AMA = doubleArrayOf(3.0, 5.0, 7.0, 12.0, 25.0) - val MAX_IOB_SMB = doubleArrayOf(3.0, 7.0, 12.0, 25.0, 40.0) + val MAX_IOB_SMB = doubleArrayOf(7.0, 13.0, 22.0, 30.0, 70.0) val MAX_BASAL = doubleArrayOf(2.0, 5.0, 10.0, 12.0, 25.0) //LGS Hard limits