Merge pull request #1212 from MilosKozak/revert-1209-CorrInsight
Revert "Fixed problem with Corr numberpicker when using Insightpump"
This commit is contained in:
commit
ebb6f746b5
1 changed files with 1 additions and 3 deletions
|
@ -914,9 +914,7 @@ public class InsightPlugin extends PluginBase implements PumpInterface, Constrai
|
||||||
public Constraint<Double> applyBolusConstraints(Constraint<Double> insulin) {
|
public Constraint<Double> applyBolusConstraints(Constraint<Double> insulin) {
|
||||||
if (statusResult != null) {
|
if (statusResult != null) {
|
||||||
insulin.setIfSmaller(statusResult.maximumBolusAmount, String.format(MainApp.gs(R.string.limitingbolus), statusResult.maximumBolusAmount, MainApp.gs(R.string.pumplimit)), this);
|
insulin.setIfSmaller(statusResult.maximumBolusAmount, 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);
|
||||||
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;
|
return insulin;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue