From 7073688920ef79315b6745e6ab4c0a9d53b60a01 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Fri, 22 Dec 2017 10:46:54 +0100 Subject: [PATCH] Update ComboPlugin to match updated PumpInterface. --- .../androidaps/plugins/PumpCombo/ComboPlugin.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java index 3df159b876..d8b6268e0e 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java @@ -577,9 +577,18 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf return setTempBasalPercent(roundedPercentage, durationInMinutes); } - // Note: AAPS calls this directly only for setting a temp basal issued by the user + /** + * Note: AAPS calls this directly only for setting a temp basal issued by the user + * + * @param forceNew Driver always applies the requested TBR and simply overrides whatever TBR + * is or isn't running at the moment + */ @Override - public PumpEnactResult setTempBasalPercent(Integer percent, final Integer durationInMinutes) { + public PumpEnactResult setTempBasalPercent(Integer percent, final Integer durationInMinutes, boolean forceNew) { + return setTempBasalPercent(percent, durationInMinutes); + } + + private PumpEnactResult setTempBasalPercent(Integer percent, final Integer durationInMinutes) { log.debug("setTempBasalPercent called with " + percent + "% for " + durationInMinutes + "min"); int adjustedPercent = percent;