Merge pull request #119 from LadyViktoria/AMA

fix autosens adjust BG targets
This commit is contained in:
Milos Kozak 2017-01-10 08:32:03 +01:00 committed by GitHub
commit 451a13295b
2 changed files with 2 additions and 1 deletions

View file

@ -36,6 +36,7 @@ public class Constants {
public static final int BOLUSSNOOZE_DIA_ADVISOR = 2; public static final int BOLUSSNOOZE_DIA_ADVISOR = 2;
public static final double AUTOSENS_MAX = 1.2d; public static final double AUTOSENS_MAX = 1.2d;
public static final double AUTOSENS_MIN = 0.7d; public static final double AUTOSENS_MIN = 0.7d;
public static final boolean AUTOSENS_ADJUST_TARGETS = false;
public static final double MIN_5M_CARBIMPACT = 3d; public static final double MIN_5M_CARBIMPACT = 3d;
// Circadian Percentage Profile // Circadian Percentage Profile

View file

@ -232,7 +232,7 @@ public class DetermineBasalAdapterAMAJS {
mProfile.add("skip_neutral_temps", true); mProfile.add("skip_neutral_temps", true);
mProfile.add("current_basal", pump.getBaseBasalRate()); mProfile.add("current_basal", pump.getBaseBasalRate());
mProfile.add("temptargetSet", tempTargetSet); 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); mProfile.add("min_5m_carbimpact", min_5m_carbimpact);
mV8rt.add(PARAM_profile, mProfile); mV8rt.add(PARAM_profile, mProfile);