From cb826da403e544ce3398019499775ea15f94db9f Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Thu, 12 Jul 2018 19:37:21 +0200 Subject: [PATCH] Revert "Fixed problem with Corr numberpicker when using Insightpump" --- .../androidaps/plugins/PumpInsight/InsightPlugin.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpInsight/InsightPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpInsight/InsightPlugin.java index 42dad2eb56..bf2c9ec09b 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpInsight/InsightPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpInsight/InsightPlugin.java @@ -914,9 +914,7 @@ public class InsightPlugin extends PluginBase implements PumpInterface, Constrai public Constraint applyBolusConstraints(Constraint insulin) { if (statusResult != null) { insulin.setIfSmaller(statusResult.maximumBolusAmount, String.format(MainApp.gs(R.string.limitingbolus), statusResult.maximumBolusAmount, MainApp.gs(R.string.pumplimit)), this); - - if(insulin.value() < 0 && insulin.value() > 0.04 ) - insulin.setIfGreater(statusResult.minimumBolusAmount, String.format(MainApp.gs(R.string.limitingbolus), statusResult.maximumBolusAmount, MainApp.gs(R.string.pumplimit)), this); + insulin.setIfGreater(statusResult.minimumBolusAmount, String.format(MainApp.gs(R.string.limitingbolus), statusResult.maximumBolusAmount, MainApp.gs(R.string.pumplimit)), this); } return insulin; }