From 0a52bc9976436c91e8fe08f52fdd6d5ab0eb41c7 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Tue, 11 Sep 2018 23:23:59 +0200 Subject: [PATCH] VirtualPump: do not cancel percent temp prior adding new --- .../androidaps/plugins/PumpVirtual/VirtualPumpPlugin.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpVirtual/VirtualPumpPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpVirtual/VirtualPumpPlugin.java index ecbca759c9..d522538af4 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpVirtual/VirtualPumpPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpVirtual/VirtualPumpPlugin.java @@ -288,17 +288,12 @@ public class VirtualPumpPlugin extends PluginBase implements PumpInterface { @Override public PumpEnactResult setTempBasalPercent(Integer percent, Integer durationInMinutes, Profile profile, boolean enforceNew) { - PumpEnactResult result = new PumpEnactResult(); - if (TreatmentsPlugin.getPlugin().isTempBasalInProgress()) { - result = cancelTempBasal(false); - if (!result.success) - return result; - } TemporaryBasal tempBasal = new TemporaryBasal() .date(System.currentTimeMillis()) .percent(percent) .duration(durationInMinutes) .source(Source.USER); + PumpEnactResult result = new PumpEnactResult(); result.success = true; result.enacted = true; result.percent = percent;