ComboPlugin.deliverTreatment: return command message as comment in PumpEnactResult.

Important when there's an error.
This commit is contained in:
Johannes Mockenhaupt 2017-07-14 17:30:04 +02:00
parent d35d93ed44
commit a27bb28e87
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -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