Bolus wizard: use PumpDescription to round final bolus to a value compatible with the pump.
This commit is contained in:
parent
0e6a93df90
commit
80124e6d7b
|
@ -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