Fix creating treatment record when bolusing (carb only treatment).
This commit is contained in:
parent
46b1dff334
commit
d7eee17112
1 changed files with 2 additions and 1 deletions
|
@ -357,7 +357,7 @@ public class ComboPlugin implements PluginBase, PumpInterface {
|
|||
}
|
||||
return pumpEnactResult;
|
||||
} else {
|
||||
// no bolus required
|
||||
// no bolus required, carb only treatment
|
||||
|
||||
// TODO the ui freezes when the calculator issues a carb-only treatment
|
||||
// so just wait, yeah, this is dumb. for now; proper fix via GL#10
|
||||
|
@ -369,6 +369,7 @@ public class ComboPlugin implements PluginBase, PumpInterface {
|
|||
pumpEnactResult.bolusDelivered = 0d;
|
||||
pumpEnactResult.carbsDelivered = detailedBolusInfo.carbs;
|
||||
pumpEnactResult.comment = MainApp.instance().getString(R.string.virtualpump_resultok);
|
||||
MainApp.getConfigBuilder().addToHistoryTreatment(detailedBolusInfo);
|
||||
return pumpEnactResult;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue