Merge pull request #285 from jotomo/gh-282
Bolus wizard: use PumpDescription to round final bolus to a value com…
This commit is contained in:
commit
bc2739878f
1 changed files with 2 additions and 1 deletions
|
@ -110,7 +110,8 @@ public class BolusWizard {
|
|||
calculatedTotalInsulin = 0d;
|
||||
}
|
||||
|
||||
calculatedTotalInsulin = Round.roundTo(calculatedTotalInsulin, 0.05d);
|
||||
double bolusStep = MainApp.getConfigBuilder().getPumpDescription().bolusStep;
|
||||
calculatedTotalInsulin = Round.roundTo(calculatedTotalInsulin, bolusStep);
|
||||
|
||||
return calculatedTotalInsulin;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue