From 8b200ba9de454157e430edd97e55a918cc528f86 Mon Sep 17 00:00:00 2001 From: harispoljo <34479922+harispoljo@users.noreply.github.com> Date: Wed, 11 Jul 2018 19:53:19 +0200 Subject: [PATCH] Fixed bug --- .../androidaps/plugins/PumpInsight/InsightPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 bdfd547f51..42dad2eb56 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 @@ -915,7 +915,7 @@ public class InsightPlugin extends PluginBase implements PumpInterface, Constrai 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) + 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); } return insulin;