do not return error if not initialized
This commit is contained in:
parent
94cb506d20
commit
61720a74ec
2 changed files with 2 additions and 2 deletions
|
@ -243,7 +243,7 @@ public class DanaRPlugin implements PluginBase, PumpInterface, ConstraintsInterf
|
||||||
@Override
|
@Override
|
||||||
public boolean isThisProfileSet(NSProfile profile) {
|
public boolean isThisProfileSet(NSProfile profile) {
|
||||||
if (!isInitialized())
|
if (!isInitialized())
|
||||||
return false;
|
return true; // TODO: not sure what's better. so far TRUE to prevent too many SMS
|
||||||
DanaRPump pump = getDanaRPump();
|
DanaRPump pump = getDanaRPump();
|
||||||
int basalValues = pump.basal48Enable ? 48 : 24;
|
int basalValues = pump.basal48Enable ? 48 : 24;
|
||||||
int basalIncrement = pump.basal48Enable ? 30 * 60 : 60 * 60;
|
int basalIncrement = pump.basal48Enable ? 30 * 60 : 60 * 60;
|
||||||
|
|
|
@ -243,7 +243,7 @@ public class DanaRKoreanPlugin implements PluginBase, PumpInterface, Constraints
|
||||||
@Override
|
@Override
|
||||||
public boolean isThisProfileSet(NSProfile profile) {
|
public boolean isThisProfileSet(NSProfile profile) {
|
||||||
if (!isInitialized())
|
if (!isInitialized())
|
||||||
return false;
|
return true; // TODO: not sure what's better. so far TRUE to prevent too many SMS
|
||||||
DanaRKoreanPump pump = getDanaRPump();
|
DanaRKoreanPump pump = getDanaRPump();
|
||||||
int basalValues = pump.basal48Enable ? 48 : 24;
|
int basalValues = pump.basal48Enable ? 48 : 24;
|
||||||
int basalIncrement = pump.basal48Enable ? 30 * 60 : 60 * 60;
|
int basalIncrement = pump.basal48Enable ? 30 * 60 : 60 * 60;
|
||||||
|
|
Loading…
Reference in a new issue