Add skip Neutral Temps preference

This commit is contained in:
Tim Gunn 2020-04-27 20:09:46 +12:00
parent 777dd9f91d
commit b42304d836
No known key found for this signature in database
GPG key ID: C9BC1E9D0D0AED8C
3 changed files with 10 additions and 1 deletions

View file

@ -265,7 +265,7 @@ public class DetermineBasalAdapterSMBJS {
mProfile.put("exercise_mode", SMBDefaults.exercise_mode);
mProfile.put("half_basal_exercise_target", SMBDefaults.half_basal_exercise_target);
mProfile.put("maxCOB", SMBDefaults.maxCOB);
mProfile.put("skip_neutral_temps", SMBDefaults.skip_neutral_temps);
mProfile.put("skip_neutral_temps", sp.getBoolean(R.string.key_skip_neutral_temps,SMBDefaults.skip_neutral_temps));
// min_5m_carbimpact is not used within SMB determinebasal
//if (mealData.usedMinCarbsImpact > 0) {
// mProfile.put("min_5m_carbimpact", mealData.usedMinCarbsImpact);

View file

@ -956,6 +956,9 @@
<string name="key_enableSMB_with_temptarget" translatable="false">enableSMB_with_temptarget</string>
<string name="key_enableSMB_after_carbs" translatable="false">enableSMB_after_carbs</string>
<string name="key_allowSMB_with_high_temptarget" translatable="false">enableSMB_with_high_temptarget</string>
<string name="key_skip_neutral_temps" translatable="false">skip_neutral_temps</string>
<string name="skip_neutral_temps_title">Skip neutral temp basals</string>
<string name="skip_neutral_temps_summary">If enabled, sets basal to neutral before the end of each hour. This method can help stop some pumps beeping/vibrating on the hour.</string>
<string name="enablesmbalways">Enable SMB always</string>
<string name="enablesmbalways_summary">Enable SMB always independently to boluses. Possible only with BG source with nice filtering of data like G5</string>
<string name="enablesmbaftercarbs">Enable SMB after carbs</string>

View file

@ -73,6 +73,12 @@
android:summary="@string/enablesmbaftercarbs_summary"
android:title="@string/enablesmbaftercarbs" />
<SwitchPreference
android:defaultValue="true"
android:key="@string/key_skip_neutral_temps"
android:summary="@string/skip_neutral_temps_summary"
android:title="@string/skip_neutral_temps_title" />
<info.nightscout.androidaps.utils.textValidator.ValidatingEditTextPreference
android:defaultValue="3"
android:digits="0123456789"