From 77ec52ff23b9b76a0a9cc3269101ea3a8e730e2b Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Tue, 10 Oct 2017 19:19:39 +0200 Subject: [PATCH] fix sending profile switch to pump --- .../plugins/Careportal/Dialogs/NewNSTreatmentDialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Careportal/Dialogs/NewNSTreatmentDialog.java b/app/src/main/java/info/nightscout/androidaps/plugins/Careportal/Dialogs/NewNSTreatmentDialog.java index 59bc27839b..5dc21f4f38 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Careportal/Dialogs/NewNSTreatmentDialog.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Careportal/Dialogs/NewNSTreatmentDialog.java @@ -707,7 +707,7 @@ public class NewNSTreatmentDialog extends DialogFragment implements View.OnClick PumpInterface pump = MainApp.getConfigBuilder(); if (pump != null) { - pump.setNewBasalProfile(profileStore.getSpecificProfile(profileName)); + pump.setNewBasalProfile(profileSwitch.getProfileObject()); MainApp.bus().post(new EventNewBasalProfile()); } else { log.error("No active pump selected");