- small bug in determineCorrectBasalSize
This commit is contained in:
parent
07495ccfdd
commit
124f3d8ac1
|
@ -58,8 +58,8 @@ public class PumpUtil {
|
||||||
basalStepSize = specialBolusSize.getStepSizeForAmount(basalAmount.floatValue());
|
basalStepSize = specialBolusSize.getStepSizeForAmount(basalAmount.floatValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (basalAmount> pumpType.getBaseBasalMaxValue())
|
if (basalAmount> pumpType.getTbrSettings().getMaxDose())
|
||||||
basalAmount = pumpType.getBaseBasalMaxValue().doubleValue();
|
basalAmount = pumpType.getTbrSettings().getMaxDose().doubleValue();
|
||||||
|
|
||||||
|
|
||||||
return Math.round(basalAmount/basalStepSize) * basalStepSize;
|
return Math.round(basalAmount/basalStepSize) * basalStepSize;
|
||||||
|
|
Loading…
Reference in a new issue