Return pump enact failure when base basal ist 0 duration execution of setTempBasalAbsolute
This commit is contained in:
parent
1ffd63c83a
commit
a282124497
1 changed files with 1 additions and 0 deletions
|
@ -580,6 +580,7 @@ public class LocalInsightPlugin extends PluginBase implements PumpInterface, Con
|
|||
public PumpEnactResult setTempBasalAbsolute(Double absoluteRate, Integer durationInMinutes, Profile profile, boolean enforceNew) {
|
||||
PumpEnactResult result = new PumpEnactResult();
|
||||
if (activeBasalRate == null) return result;
|
||||
if (activeBasalRate.getActiveBasalRate() == 0) return result;
|
||||
double percent = 100D / activeBasalRate.getActiveBasalRate() * absoluteRate;
|
||||
if (isFakingTempsByExtendedBoluses()) {
|
||||
PumpEnactResult cancelEBResult = cancelExtendedBolusOnly();
|
||||
|
|
Loading…
Reference in a new issue