From a5730cb9825537e3dd84d32b2e3992d931430e93 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Mon, 2 Oct 2017 22:44:10 +0200 Subject: [PATCH] initialize only with proper protocol --- .../nightscout/androidaps/plugins/PumpDanaRS/DanaRSPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpDanaRS/DanaRSPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpDanaRS/DanaRSPlugin.java index 1f3b99bd1a..6625949d40 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpDanaRS/DanaRSPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpDanaRS/DanaRSPlugin.java @@ -353,7 +353,7 @@ public class DanaRSPlugin implements PluginBase, PumpInterface, DanaRInterface, @Override public boolean isInitialized() { - return pump.lastConnection.getTime() > 0; + return pump.lastConnection.getTime() > 0 && pump.protocol > 1; } @Override