Use OpenAPS-requested duration for TBRs.
This commit is contained in:
parent
9927ab4989
commit
825a87f474
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue