From cb3b472488871b08fdf42f5c557f058a5de3f6d9 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Wed, 13 Sep 2017 12:59:29 +0200 Subject: [PATCH] VirtualPump: set PumpEnactResult.enacted. (cherry picked from commit ec49bc3) --- .../androidaps/plugins/PumpVirtual/VirtualPumpPlugin.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpVirtual/VirtualPumpPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpVirtual/VirtualPumpPlugin.java index c04ec9b12f..3a281d01b3 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpVirtual/VirtualPumpPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpVirtual/VirtualPumpPlugin.java @@ -217,6 +217,7 @@ public class VirtualPumpPlugin implements PluginBase, PumpInterface { result.success = true; result.bolusDelivered = detailedBolusInfo.insulin; result.carbsDelivered = detailedBolusInfo.carbs; + result.enacted = result.bolusDelivered > 0 || result.carbsDelivered > 0; result.comment = MainApp.instance().getString(R.string.virtualpump_resultok); Double delivering = 0d;