From f5f60bcd30eef4d2387698beb746cd28f7dc2459 Mon Sep 17 00:00:00 2001 From: viktoria Date: Tue, 10 Jan 2017 01:01:11 +0100 Subject: [PATCH] fix autosens adjust BG targets regarding to that: https://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-3/beyond-low-glucose-suspend.html the autosens_adjust_targets setting is only for allow autosens to adjust the BG target not for enabling or disabling the wohle autosens feature --- app/src/main/java/info/nightscout/androidaps/Constants.java | 1 + .../plugins/OpenAPSAMA/DetermineBasalAdapterAMAJS.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/Constants.java b/app/src/main/java/info/nightscout/androidaps/Constants.java index 37e358f974..adcb7a883f 100644 --- a/app/src/main/java/info/nightscout/androidaps/Constants.java +++ b/app/src/main/java/info/nightscout/androidaps/Constants.java @@ -36,6 +36,7 @@ public class Constants { public static final int BOLUSSNOOZE_DIA_ADVISOR = 2; public static final double AUTOSENS_MAX = 1.2d; public static final double AUTOSENS_MIN = 0.7d; + public static final boolean AUTOSENS_ADJUST_TARGETS = false; public static final double MIN_5M_CARBIMPACT = 3d; // Circadian Percentage Profile diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/OpenAPSAMA/DetermineBasalAdapterAMAJS.java b/app/src/main/java/info/nightscout/androidaps/plugins/OpenAPSAMA/DetermineBasalAdapterAMAJS.java index 7cb680e68c..e09bac0f07 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/OpenAPSAMA/DetermineBasalAdapterAMAJS.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/OpenAPSAMA/DetermineBasalAdapterAMAJS.java @@ -232,7 +232,7 @@ public class DetermineBasalAdapterAMAJS { mProfile.add("skip_neutral_temps", true); mProfile.add("current_basal", pump.getBaseBasalRate()); mProfile.add("temptargetSet", tempTargetSet); - mProfile.add("autosens_adjust_targets", MainApp.getConfigBuilder().isAMAModeEnabled()); + mProfile.add("autosens_adjust_targets", Constants.AUTOSENS_ADJUST_TARGETS); mProfile.add("min_5m_carbimpact", min_5m_carbimpact); mV8rt.add(PARAM_profile, mProfile);