From a21da8aba7464a746618c782344ad3e9ae1bb3d1 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Sat, 15 Jul 2017 02:00:20 +0200 Subject: [PATCH] Remove pointless events about connection status. --- .../nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java | 2 -- 1 file changed, 2 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 b0bab1769e..1cd73c58e0 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 @@ -296,12 +296,10 @@ public class ComboPlugin implements PluginBase, PumpInterface { private CommandResult runCommand(Command command) { // TODO use this to dispatch methods to a service thread, like DanaRs executionService try { - MainApp.bus().post(new EventPumpStatusChanged(EventPumpStatusChanged.CONNECTED)); return ruffyScripter.runCommand(command); } finally { lastCmdTime = new Date(); ruffyScripter.disconnect(); - MainApp.bus().post(new EventPumpStatusChanged(EventPumpStatusChanged.DISCONNECTED)); } }