initialized only when maxBasal >0

This commit is contained in:
AdrianLxM 2017-11-06 14:16:50 +01:00
parent d990d59ddf
commit 3ea4bfaf37

View file

@ -229,7 +229,7 @@ public class DanaRPlugin implements PluginBase, PumpInterface, DanaRInterface, C
@Override
public boolean isInitialized() {
return pump.lastConnection.getTime() > 0 && pump.isExtendedBolusEnabled;
return pump.lastConnection.getTime() > 0 && pump.isExtendedBolusEnabled && pump.maxBasal > 0;
}
@Override