add duration to description
This commit is contained in:
parent
199c6b5e2c
commit
bd6ee0f213
2 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue