From 9a47e521d252886a6d5af8c1b4a3d4eaddc4ef3b Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Wed, 28 Dec 2016 22:30:38 +0100 Subject: [PATCH] show result in loop plugin when correct basal settoo --- .../info/nightscout/androidaps/plugins/Loop/LoopPlugin.java | 2 +- wear/wear.iml | 5 +++++ 2 files changed, 6 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 d84bbb1017..7c450e9c69 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 @@ -168,7 +168,7 @@ public class LoopPlugin implements PluginBase { @Override public void run() { final PumpEnactResult applyResult = configBuilder.applyAPSRequest(resultAfterConstraints); - if (applyResult.enacted) { + if (applyResult.enacted || applyResult.success) { lastRun.setByPump = applyResult; lastRun.lastEnact = lastRun.lastAPSRun; } else { diff --git a/wear/wear.iml b/wear/wear.iml index 3128c10a22..ce3df746e7 100644 --- a/wear/wear.iml +++ b/wear/wear.iml @@ -122,6 +122,7 @@ + @@ -134,10 +135,14 @@ + + + +