From a45fd1619e37b52d067fc75f3f6e4e88b50dbb7c Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Tue, 4 Jul 2017 01:43:27 +0200 Subject: [PATCH] fake extended fix 3 --- .../main/java/info/nightscout/androidaps/db/TemporaryBasal.java | 2 +- .../androidaps/plugins/Treatments/TreatmentsPlugin.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/db/TemporaryBasal.java b/app/src/main/java/info/nightscout/androidaps/db/TemporaryBasal.java index 8868abdc8c..83ef07fbc8 100644 --- a/app/src/main/java/info/nightscout/androidaps/db/TemporaryBasal.java +++ b/app/src/main/java/info/nightscout/androidaps/db/TemporaryBasal.java @@ -48,7 +48,7 @@ public class TemporaryBasal implements Interval { @DatabaseField public boolean isAbsolute = false; - public boolean isFakeExtended = true; + public boolean isFakeExtended = false; @DatabaseField public int percentRate = 0; diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Treatments/TreatmentsPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/Treatments/TreatmentsPlugin.java index a1d022e264..d7a2c26bc7 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Treatments/TreatmentsPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Treatments/TreatmentsPlugin.java @@ -361,7 +361,7 @@ public class TreatmentsPlugin implements PluginBase, TreatmentsInterface { double baseRate = pump.getBaseBasalRate(); double tempRate = baseRate + tb.netExtendedRate; return tempRate; - }else if (tb.isAbsolute) { + } else if (tb.isAbsolute) { return tb.absoluteRate; } else { double baseRate = pump.getBaseBasalRate();