Fix wear bolus for Insight
This commit is contained in:
parent
7035b9a5f2
commit
f5d65e044c
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ public class ActionStringHandler {
|
||||||
0d, percentage, useBolusIOB, useBasalIOB, false, useTrend);
|
0d, percentage, useBolusIOB, useBasalIOB, false, useTrend);
|
||||||
|
|
||||||
Double insulinAfterConstraints = MainApp.getConstraintChecker().applyBolusConstraints(new Constraint<>(bolusWizard.calculatedTotalInsulin)).value();
|
Double insulinAfterConstraints = MainApp.getConstraintChecker().applyBolusConstraints(new Constraint<>(bolusWizard.calculatedTotalInsulin)).value();
|
||||||
if (insulinAfterConstraints - bolusWizard.calculatedTotalInsulin != 0) {
|
if (Math.abs(insulinAfterConstraints - bolusWizard.calculatedTotalInsulin) >= 0.01) {
|
||||||
sendError("Insulin contraint violation!" +
|
sendError("Insulin contraint violation!" +
|
||||||
"\nCannot deliver " + format.format(bolusWizard.calculatedTotalInsulin) + "!");
|
"\nCannot deliver " + format.format(bolusWizard.calculatedTotalInsulin) + "!");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue