ComboPlugin.deliverTreatment: return command message as comment in PumpEnactResult.
Important when there's an error.
This commit is contained in:
parent
d35d93ed44
commit
a27bb28e87
|
@ -252,7 +252,7 @@ public class ComboPlugin implements PluginBase, PumpInterface {
|
||||||
result.success = bolusCmdResult.success;
|
result.success = bolusCmdResult.success;
|
||||||
result.enacted = bolusCmdResult.enacted;
|
result.enacted = bolusCmdResult.enacted;
|
||||||
result.bolusDelivered = detailedBolusInfo.insulin;
|
result.bolusDelivered = detailedBolusInfo.insulin;
|
||||||
result.comment = MainApp.instance().getString(R.string.virtualpump_resultok);
|
result.comment = bolusCmdResult.message;
|
||||||
} else {
|
} else {
|
||||||
// TODO the ui freezes when the calculator issues a 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
|
// so just wait, yeah, this is dumb. for now; proper fix via GL#10
|
||||||
|
|
Loading…
Reference in a new issue