Use OpenAPS-requested duration for TBRs.

This commit is contained in:
Johannes Mockenhaupt 2017-07-18 23:57:48 +02:00
parent 9927ab4989
commit 825a87f474
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -408,11 +408,13 @@ public class ComboPlugin implements PluginBase, PumpInterface {
if (unroundedPercentage != roundedPercentage) {
log.debug("Rounded requested rate " + unroundedPercentage + "% -> " + roundedPercentage + "%");
}
/* GL jotomo/AndroidAPS#18
int stepSize = pumpDescription.tempDurationStep;
if (durationInMinutes > stepSize) {
log.debug("Reducing requested duration of " + durationInMinutes + "m to minimal duration supported by the pump: " + stepSize + "m");
durationInMinutes = stepSize;
}
*/
return setTempBasalPercent(roundedPercentage, durationInMinutes);
}