diff --git a/app/src/main/java/info/nightscout/androidaps/interfaces/PumpDescription.java b/app/src/main/java/info/nightscout/androidaps/interfaces/PumpDescription.java index dc6203b39b..69fbbdef79 100644 --- a/app/src/main/java/info/nightscout/androidaps/interfaces/PumpDescription.java +++ b/app/src/main/java/info/nightscout/androidaps/interfaces/PumpDescription.java @@ -20,7 +20,9 @@ public class PumpDescription { public int highTempBasalStyle = PERCENT; public double maxHighTemp = 200; public double lowTempStep = 10; + public int lowTempDuration = 60; public double highTempStep = 10; + public int highTempDuration = 60; public boolean isSetBasalProfileCapable = true; public double basalStep = 0.01d; diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/DanaR/DanaRPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/DanaR/DanaRPlugin.java index 273f5e0d3d..d9e5b90445 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/DanaR/DanaRPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/DanaR/DanaRPlugin.java @@ -90,7 +90,9 @@ public class DanaRPlugin implements PluginBase, PumpInterface, ConstraintsInterf pumpDescription.highTempBasalStyle = useExtendedBoluses ? PumpDescription.EXTENDED : PumpDescription.PERCENT; pumpDescription.maxHighTemp = useExtendedBoluses ? 0: 200; pumpDescription.lowTempStep = 10; + pumpDescription.lowTempDuration = 60; pumpDescription.highTempStep = useExtendedBoluses ? 0.05d : 10; + pumpDescription.highTempDuration = useExtendedBoluses ? 30 : 60; pumpDescription.isSetBasalProfileCapable = true; pumpDescription.basalStep = 0.01d; @@ -129,6 +131,7 @@ public class DanaRPlugin implements PluginBase, PumpInterface, ConstraintsInterf pumpDescription.highTempBasalStyle = useExtendedBoluses ? PumpDescription.EXTENDED : PumpDescription.PERCENT; pumpDescription.maxHighTemp = useExtendedBoluses ? 0: 200; pumpDescription.highTempStep = useExtendedBoluses ? 0.05d : 10; + pumpDescription.highTempDuration = useExtendedBoluses ? 30 : 60; if (useExtendedBoluses != previousValue && isExtendedBoluslInProgress()) { sExecutionService.extendedBolusStop();