Fixed bug

This commit is contained in:
harispoljo 2018-07-11 19:53:19 +02:00 committed by GitHub
parent 395f2313fd
commit 8b200ba9de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;