From 5adaff6bc6c9192f32db2850656acae55d872222 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Fri, 2 Feb 2018 18:59:05 +0100 Subject: [PATCH] Don't run loop on treatment change if it's an SMB. --- .../info/nightscout/androidaps/plugins/Loop/LoopPlugin.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Loop/LoopPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/Loop/LoopPlugin.java index 72c9b1afff..2debfa34c5 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Loop/LoopPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Loop/LoopPlugin.java @@ -151,7 +151,9 @@ public class LoopPlugin implements PluginBase { @Subscribe public void onStatusEvent(final EventTreatmentChange ev) { - invoke("EventTreatmentChange", true); + if (ev.treatment == null || !ev.treatment.isSMB){ + invoke("EventTreatmentChange", true); + } } @Subscribe