From c84ba24c771243fac68ecc8e8bd3eb5bd6baf7eb Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Wed, 27 Dec 2017 01:23:16 +0100 Subject: [PATCH] Provide message when setting basal profile fails. Fixes #29. --- .../nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java index 98476d37c7..4dae17dba6 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java @@ -263,7 +263,7 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf if (!setResult.success) { Notification notification = new Notification(Notification.FAILED_UDPATE_PROFILE, MainApp.sResources.getString(R.string.failedupdatebasalprofile), Notification.URGENT); MainApp.bus().post(new EventNewNotification(notification)); - return new PumpEnactResult().success(false).enacted(false); + return new PumpEnactResult().success(false).enacted(false).comment(MainApp.sResources.getString(R.string.failedupdatebasalprofile)); } /* don't re-read basal profile to not trigger pump bug; setBasalProfile command checks the total at the end, which must suffice