Bolus wizard: use PumpDescription to round final bolus to a value compatible with the pump.
This commit is contained in:
parent
0e6a93df90
commit
80124e6d7b
1 changed files with 2 additions and 1 deletions
|
@ -110,7 +110,8 @@ public class BolusWizard {
|
||||||
calculatedTotalInsulin = 0d;
|
calculatedTotalInsulin = 0d;
|
||||||
}
|
}
|
||||||
|
|
||||||
calculatedTotalInsulin = Round.roundTo(calculatedTotalInsulin, 0.05d);
|
double bolusStep = MainApp.getConfigBuilder().getPumpDescription().bolusStep;
|
||||||
|
calculatedTotalInsulin = Round.roundTo(calculatedTotalInsulin, bolusStep);
|
||||||
|
|
||||||
return calculatedTotalInsulin;
|
return calculatedTotalInsulin;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue