From 69e560baee805100c2023b94fe3bbb70150490ac Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Sat, 15 Jul 2017 21:26:37 +0200 Subject: [PATCH] Cleanup. --- .../androidaps/plugins/PumpCombo/ComboPlugin.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java index d1c0588db9..06b8e300a4 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java @@ -264,7 +264,6 @@ public class ComboPlugin implements PluginBase, PumpInterface { // writing carb treatments to the history table. What's PumpEnactResult for again? @Override public PumpEnactResult deliverTreatment(DetailedBolusInfo detailedBolusInfo) { - log.debug("deliver treatment called with dbi: " + detailedBolusInfo); if (detailedBolusInfo.insulin > 0 || detailedBolusInfo.carbs > 0) { PumpEnactResult result = new PumpEnactResult(); if (detailedBolusInfo.insulin > 0) { @@ -335,10 +334,8 @@ public class ComboPlugin implements PluginBase, PumpInterface { } catch (Exception e) { statusSummary = "Error"; } - if (commandResult != null && commandResult.success) { - // just leave it open, to avoid more errors - ruffyScripter.disconnect(); - } + + ruffyScripter.disconnect(); MainApp.bus().post(new EventComboPumpUpdateGUI()); } }