CB.applyTBRRequest: enact same-rate TBR ...
if requested duration is at least 30m longer than the currently running TBR.
This commit is contained in:
parent
f918a5f303
commit
ede1e719d2
1 changed files with 1 additions and 0 deletions
|
@ -395,6 +395,7 @@ public class ConfigBuilderPlugin implements PluginBase, ConstraintsInterface, Tr
|
|||
}
|
||||
} else if (activeTemp != null
|
||||
&& activeTemp.getPlannedRemainingMinutes() > 5
|
||||
&& request.duration - activeTemp.getPlannedRemainingMinutes() < 30
|
||||
&& Math.abs(request.rate - activeTemp.tempBasalConvertedToAbsolute(now, profile)) < pump.getPumpDescription().basalStep) {
|
||||
if (Config.logCongigBuilderActions)
|
||||
log.debug("applyAPSRequest: Temp basal set correctly");
|
||||
|
|
Loading…
Reference in a new issue