initialize only with proper protocol

This commit is contained in:
Milos Kozak 2017-10-02 22:44:10 +02:00
parent 97f69c50fd
commit a5730cb982

View file

@ -353,7 +353,7 @@ public class DanaRSPlugin implements PluginBase, PumpInterface, DanaRInterface,
@Override @Override
public boolean isInitialized() { public boolean isInitialized() {
return pump.lastConnection.getTime() > 0; return pump.lastConnection.getTime() > 0 && pump.protocol > 1;
} }
@Override @Override