add duration to description

This commit is contained in:
Milos Kozak 2016-12-09 20:20:21 +01:00
parent 199c6b5e2c
commit bd6ee0f213
2 changed files with 5 additions and 0 deletions

View file

@ -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;

View file

@ -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();