- minor change. New absoluteValue is now put through pumpType.determineCorreectBasalValue method, so that we get correct value
This commit is contained in:
parent
d4d1110d68
commit
2569e66bce
1 changed files with 4 additions and 2 deletions
|
@ -1068,8 +1068,10 @@ public class MedtronicPumpPlugin extends PumpPluginAbstract implements PumpInter
|
|||
if (percent==0) {
|
||||
return setTempBasalAbsolute(0.0d, durationInMinutes, profile, enforceNew);
|
||||
} else {
|
||||
Double absoluteValue = profile.getBasal() * (percent /100.0d);
|
||||
LOG.warn("setTempBasalPercent [MedtronicPumpPlugin] - You are trying to use setTempBasalPercent with percent other then 0% (%d). This will start setTempBasalAbsolute, with calculated value (%.2f). Result might not be 100% correct.", percent, absoluteValue);
|
||||
double absoluteValue = profile.getBasal() * (percent /100.0d);
|
||||
getMDTPumpStatus();
|
||||
absoluteValue = pumpStatusLocal.pumpType.determineCorrectBasalSize(absoluteValue);
|
||||
LOG.warn("setTempBasalPercent [MedtronicPumpPlugin] - You are trying to use setTempBasalPercent with percent other then 0% (%d). This will start setTempBasalAbsolute, with calculated value (%.3f). Result might not be 100% correct.", percent, absoluteValue);
|
||||
return setTempBasalAbsolute(absoluteValue, durationInMinutes, profile, enforceNew);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue