fix sending profile switch to pump

This commit is contained in:
Milos Kozak 2017-10-10 19:19:39 +02:00
parent da71cdfca0
commit 77ec52ff23

View file

@ -707,7 +707,7 @@ public class NewNSTreatmentDialog extends DialogFragment implements View.OnClick
PumpInterface pump = MainApp.getConfigBuilder(); PumpInterface pump = MainApp.getConfigBuilder();
if (pump != null) { if (pump != null) {
pump.setNewBasalProfile(profileStore.getSpecificProfile(profileName)); pump.setNewBasalProfile(profileSwitch.getProfileObject());
MainApp.bus().post(new EventNewBasalProfile()); MainApp.bus().post(new EventNewBasalProfile());
} else { } else {
log.error("No active pump selected"); log.error("No active pump selected");