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