From 264e252300591f6b17feb6e9f0b194bf3aad7366 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Fri, 14 Jul 2017 21:57:30 +0200 Subject: [PATCH] Set last command date. Though this is only relevant when starting to fetch data from the pump. --- .../nightscout/androidaps/plugins/PumpCombo/ComboPlugin.java | 1 + 1 file changed, 1 insertion(+) 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 e545cd5509..115445683a 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 @@ -301,6 +301,7 @@ public class ComboPlugin implements PluginBase, PumpInterface { return ruffyScripter.runCommand(command); } finally { // MainApp.bus().post(new EventPumpStatusChanged(EventPumpStatusChanged.DISCONNECTING)); + lastCmdTime = new Date(); ruffyScripter.disconnect(); // MainApp.bus().post(new EventPumpStatusChanged(EventPumpStatusChanged.DISCONNECTED)); // MainApp.bus().post(new EventComboPumpUpdateGUI());