From f0351834ff3b08029c1b4cad37ed240a0a391129 Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Sun, 6 May 2018 12:49:03 +0200 Subject: [PATCH] default DIA --- app/src/main/java/info/nightscout/androidaps/Constants.java | 2 +- .../java/info/nightscout/androidaps/db/ExtendedBolus.java | 2 +- .../nightscout/androidaps/interfaces/InsulinInterface.java | 4 ++-- .../nightscout/androidaps/plugins/Treatments/Treatment.java | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/Constants.java b/app/src/main/java/info/nightscout/androidaps/Constants.java index 56fd2b6de9..a66d4e77f1 100644 --- a/app/src/main/java/info/nightscout/androidaps/Constants.java +++ b/app/src/main/java/info/nightscout/androidaps/Constants.java @@ -12,7 +12,7 @@ public class Constants { public static final double MMOLL_TO_MGDL = 18; // 18.0182; public static final double MGDL_TO_MMOLL = 1 / MMOLL_TO_MGDL; - public static final double defaultDIA = 3d; + public static final double defaultDIA = 5d; public static final Double REALLYHIGHBASALRATE = 1111111d; public static final Integer REALLYHIGHPERCENTBASALRATE = 1111111; diff --git a/app/src/main/java/info/nightscout/androidaps/db/ExtendedBolus.java b/app/src/main/java/info/nightscout/androidaps/db/ExtendedBolus.java index 1123cb58df..ea97f4ddca 100644 --- a/app/src/main/java/info/nightscout/androidaps/db/ExtendedBolus.java +++ b/app/src/main/java/info/nightscout/androidaps/db/ExtendedBolus.java @@ -58,7 +58,7 @@ public class ExtendedBolus implements Interval, DataPointWithLabelInterface { public int durationInMinutes = 0; // duration == 0 means end of extended bolus @DatabaseField - public int insulinInterfaceID = InsulinInterface.FASTACTINGINSULIN; + public int insulinInterfaceID = InsulinInterface.OREF_RAPID_ACTING; @DatabaseField public double dia = Constants.defaultDIA; diff --git a/app/src/main/java/info/nightscout/androidaps/interfaces/InsulinInterface.java b/app/src/main/java/info/nightscout/androidaps/interfaces/InsulinInterface.java index a123554ae8..34b14d9b5d 100644 --- a/app/src/main/java/info/nightscout/androidaps/interfaces/InsulinInterface.java +++ b/app/src/main/java/info/nightscout/androidaps/interfaces/InsulinInterface.java @@ -8,8 +8,8 @@ import info.nightscout.androidaps.plugins.Treatments.Treatment; */ public interface InsulinInterface { - int FASTACTINGINSULIN = 0; - int FASTACTINGINSULINPROLONGED = 1; + // int FASTACTINGINSULIN = 0; // old model no longer available + // int FASTACTINGINSULINPROLONGED = 1; // old model no longer available int OREF_RAPID_ACTING = 2; int OREF_ULTRA_RAPID_ACTING = 3; int OREF_FREE_PEAK = 4; diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Treatments/Treatment.java b/app/src/main/java/info/nightscout/androidaps/plugins/Treatments/Treatment.java index 1983c38242..4e1ad16918 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Treatments/Treatment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Treatments/Treatment.java @@ -57,7 +57,7 @@ public class Treatment implements DataPointWithLabelInterface { public boolean isSMB = false; @DatabaseField - public int insulinInterfaceID = InsulinInterface.FASTACTINGINSULIN; // currently unused, will be used in the future + public int insulinInterfaceID = InsulinInterface.OREF_RAPID_ACTING; // currently unused, will be used in the future @DatabaseField public double dia = Constants.defaultDIA; // currently unused, will be used in the future