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:
AdrianLxM 2017-07-15 14:45:48 +02:00 committed by GitHub
commit bc2739878f

View file

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