Remove oref SMB carbs required preference

This commit is contained in:
Tim Gunn 2020-06-03 00:17:05 +12:00
parent 8142df9487
commit 2c2201129b
No known key found for this signature in database
GPG key ID: C9BC1E9D0D0AED8C
3 changed files with 3 additions and 13 deletions

View file

@ -38,10 +38,9 @@ public class DetermineBasalResultSMB extends APSResult {
if (result.has("snoozeBG")) snoozeBG = result.getDouble("snoozeBG");
//if (result.has("insulinReq")) insulinReq = result.getDouble("insulinReq");
if (sp.getBoolean(R.string.key_smb_enable_carbs_suggestions, false)) {
if (result.has("carbsReq")) carbsReq = result.getInt("carbsReq");
if (result.has("carbsReqWithin")) carbsReqWithin = result.getInt("carbsReqWithin");
}
if (result.has("carbsReq")) carbsReq = result.getInt("carbsReq");
if (result.has("carbsReqWithin")) carbsReqWithin = result.getInt("carbsReqWithin");
if (result.has("rate") && result.has("duration")) {
tempBasalRequested = true;

View file

@ -613,14 +613,11 @@
<string name="openapssmb">OpenAPS SMB</string>
<string name="key_use_smb" translatable="false">use_smb</string>
<string name="key_use_uam" translatable="false">use_uam</string>
<string name="key_smb_enable_carbs_suggestions" translatable="false">smb_enable_carbs_suggestions</string>
<string name="key_smb_enable_carbs_suggestions_threshold" translatable="false">smb_enable_carbs_suggestions_threshold</string>
<string name="enableuam">Enable UAM</string>
<string name="enablesmb">Enable SMB</string>
<string name="enablecarbssuggestions">Enable Carbs Suggestions</string>
<string name="enablesmb_summary">Use Super Micro Boluses instead of temp basal for faster action</string>
<string name="enableuam_summary">Detection of Unannounced meals</string>
<string name="enablecarbssuggestions_summary">Enable carbs suggestions when BG is predicted to go below threshold</string>
<string name="key_insulin_oref_peak" translatable="false">insulin_oref_peak</string>
<string name="insulin_oref_peak">IOB Curve Peak Time</string>
<string name="insulin_peak_time">Peak Time [min]</string>

View file

@ -142,12 +142,6 @@
android:key="@string/key_low_temptarget_lowers_sensitivity"
android:summary="@string/low_temptarget_lowers_sensitivity_summary"
android:title="@string/low_temptarget_lowers_sensitivity_title" />
<SwitchPreference
android:defaultValue="false"
android:key="@string/key_smb_enable_carbs_suggestions"
android:summary="@string/enablecarbssuggestions_summary"
android:title="@string/enablecarbssuggestions" />
<info.nightscout.androidaps.utils.textValidator.ValidatingEditTextPreference
android:key="@string/key_carbsReqThreshold"