- small bug in determineCorrectBasalSize

This commit is contained in:
Andy Rozman 2018-08-28 22:41:31 +01:00
parent 07495ccfdd
commit 124f3d8ac1

View file

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