get SMB bolus limits working
This commit is contained in:
parent
a879875956
commit
39c3938cf7
3 changed files with 6 additions and 6 deletions
|
@ -257,7 +257,7 @@ public class DetermineBasalAdapterSMBJS {
|
|||
mProfile.put("enableSMB_after_carbs", SP.getBoolean(R.string.key_enableSMB_after_carbs, false) && advancedFiltering);
|
||||
mProfile.put("maxSMBBasalMinutes", SP.getInt("key_smbmaxminutes", SMBDefaults.maxSMBBasalMinutes));
|
||||
mProfile.put("maxUAMSMBBasalMinutes", SP.getInt("key_uamsmbmaxminutes", SMBDefaults.maxUAMSMBBasalMinutes));
|
||||
mProfile.put("bolus_increment", SP.getDouble("key_bolus_increment", SMBDefaults.bolus_increment));
|
||||
mProfile.put("bolus_increment", SP.getDouble("bolus_increment", SMBDefaults.bolus_increment));
|
||||
mProfile.put("carbsReqThreshold", SMBDefaults.carbsReqThreshold);
|
||||
|
||||
mProfile.put("current_basal", basalrate);
|
||||
|
|
|
@ -804,6 +804,7 @@
|
|||
<string name="smbmaxminutes_summary">Max minutes of basal to limit SMB to</string>
|
||||
<string name="uamsmbmaxminutes" translatable="false">45 60 75 90 105 120</string>
|
||||
<string name="uamsmbmaxminutes_summary">Max minutes of basal to limit SMB to for UAM</string>
|
||||
<string name="bolus_increment" translatable="false">0.1</string>
|
||||
<string name="bolus_increment_summary">Minimum bolus that can be delivered as an SMB</string>
|
||||
<string name="unsupportedfirmware">Unsupported pump firmware</string>
|
||||
<string name="dexcomg5_xdripupload_title">Send BG data to xDrip+</string>
|
||||
|
|
|
@ -95,15 +95,14 @@
|
|||
|
||||
<com.andreabaccega.widget.ValidatingEditTextPreference
|
||||
android:defaultValue="0.1"
|
||||
android:digits="0123456789."
|
||||
android:inputType="number"
|
||||
android:inputType="numberDecimal"
|
||||
android:key="@string/bolus_increment"
|
||||
android:maxLines="20"
|
||||
android:key="key_bolus_increment"
|
||||
android:selectAllOnFocus="true"
|
||||
android:singleLine="true"
|
||||
android:title="@string/bolus_increment_summary"
|
||||
validate:maxNumber='1'
|
||||
validate:minNumber='0'
|
||||
validate:floatmaxNumber="1.0"
|
||||
validate:floatminNumber="0.05"
|
||||
validate:testType="floatNumericRange" />
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue