Use OpenAPS-requested duration for TBRs.
This commit is contained in:
parent
9927ab4989
commit
825a87f474
1 changed files with 2 additions and 0 deletions
|
@ -408,11 +408,13 @@ public class ComboPlugin implements PluginBase, PumpInterface {
|
||||||
if (unroundedPercentage != roundedPercentage) {
|
if (unroundedPercentage != roundedPercentage) {
|
||||||
log.debug("Rounded requested rate " + unroundedPercentage + "% -> " + roundedPercentage + "%");
|
log.debug("Rounded requested rate " + unroundedPercentage + "% -> " + roundedPercentage + "%");
|
||||||
}
|
}
|
||||||
|
/* GL jotomo/AndroidAPS#18
|
||||||
int stepSize = pumpDescription.tempDurationStep;
|
int stepSize = pumpDescription.tempDurationStep;
|
||||||
if (durationInMinutes > stepSize) {
|
if (durationInMinutes > stepSize) {
|
||||||
log.debug("Reducing requested duration of " + durationInMinutes + "m to minimal duration supported by the pump: " + stepSize + "m");
|
log.debug("Reducing requested duration of " + durationInMinutes + "m to minimal duration supported by the pump: " + stepSize + "m");
|
||||||
durationInMinutes = stepSize;
|
durationInMinutes = stepSize;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
return setTempBasalPercent(roundedPercentage, durationInMinutes);
|
return setTempBasalPercent(roundedPercentage, durationInMinutes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue