fix wrong error dialog when only carbs are delivered (R,KoreanR)
This commit is contained in:
parent
7e2fb305c6
commit
c15a4b5efe
5 changed files with 96 additions and 91 deletions
|
@ -72,7 +72,7 @@ public class DanaRPlugin extends AbstractDanaRPlugin {
|
|||
|
||||
pumpDescription.isRefillingCapable = true;
|
||||
|
||||
pumpDescription.storesCarbInfo = true;
|
||||
pumpDescription.storesCarbInfo = false;
|
||||
|
||||
pumpDescription.supportsTDDs = true;
|
||||
pumpDescription.needsManualTDDLoad = true;
|
||||
|
|
|
@ -264,6 +264,7 @@ public class DanaRExecutionService extends AbstractDanaRExecutionService{
|
|||
mSerialIOThread.sendMessage(new MsgSetCarbsEntry(carbtime, carbs));
|
||||
}
|
||||
|
||||
if (amount > 0) {
|
||||
MsgBolusProgress progress = new MsgBolusProgress(amount, t); // initialize static variables
|
||||
long bolusStart = System.currentTimeMillis();
|
||||
|
||||
|
@ -339,6 +340,7 @@ public class DanaRExecutionService extends AbstractDanaRExecutionService{
|
|||
} else {
|
||||
ConfigBuilderPlugin.getCommandQueue().readStatus("bolusOK", null);
|
||||
}
|
||||
}
|
||||
return !start.failed;
|
||||
}
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@ public class DanaRKoreanPlugin extends AbstractDanaRPlugin {
|
|||
|
||||
pumpDescription.isRefillingCapable = true;
|
||||
|
||||
pumpDescription.storesCarbInfo = true;
|
||||
pumpDescription.storesCarbInfo = false;
|
||||
|
||||
pumpDescription.supportsTDDs = true;
|
||||
pumpDescription.needsManualTDDLoad = true;
|
||||
|
|
|
@ -264,6 +264,7 @@ public class DanaRKoreanExecutionService extends AbstractDanaRExecutionService {
|
|||
mSerialIOThread.sendMessage(new MsgSetCarbsEntry(carbtime, carbs));
|
||||
}
|
||||
|
||||
if (amount > 0) {
|
||||
MsgBolusProgress progress = new MsgBolusProgress(amount, t); // initialize static variables
|
||||
long bolusStart = System.currentTimeMillis();
|
||||
|
||||
|
@ -285,6 +286,7 @@ public class DanaRKoreanExecutionService extends AbstractDanaRExecutionService {
|
|||
|
||||
mBolusingTreatment = null;
|
||||
ConfigBuilderPlugin.getCommandQueue().readStatus("bolusOK", null);
|
||||
}
|
||||
|
||||
return !start.failed;
|
||||
}
|
||||
|
|
|
@ -34,6 +34,7 @@ public class CommandBolus extends Command {
|
|||
}
|
||||
|
||||
public String status() {
|
||||
return "BOLUS " + DecimalFormatter.to1Decimal(detailedBolusInfo.insulin) + "U";
|
||||
return (detailedBolusInfo.insulin > 0 ? "BOLUS " + DecimalFormatter.to1Decimal(detailedBolusInfo.insulin) + "U " : "") +
|
||||
(detailedBolusInfo.carbs > 0 ? "CARBS " + DecimalFormatter.to0Decimal(detailedBolusInfo.carbs) + "g" : "" );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue