Undo "explicit pump initalization."

This commit is contained in:
Johannes Mockenhaupt 2017-10-20 20:09:58 +02:00
parent 87c1c4b112
commit 950d1b62db
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1
8 changed files with 1 additions and 31 deletions

View file

@ -176,8 +176,7 @@ public class MainApp extends Application {
SystemClock.sleep(5000);
PumpInterface pump = MainApp.getConfigBuilder();
if (pump != null) {
log.debug("Initializing pump");
pump.initialize();
pump.refreshDataFromPump("Initialization");
}
}
});

View file

@ -15,7 +15,6 @@ import info.nightscout.androidaps.data.Profile;
*/
public interface PumpInterface {
void initialize();
boolean isInitialized();
boolean isSuspended();
boolean isBusy();

View file

@ -222,11 +222,6 @@ public class DanaRPlugin implements PluginBase, PumpInterface, DanaRInterface, C
return useExtendedBoluses;
}
@Override
public void initialize() {
refreshDataFromPump("Initialization");
}
@Override
public boolean isInitialized() {
return pump.lastConnection.getTime() > 0 && pump.isExtendedBolusEnabled;

View file

@ -224,11 +224,6 @@ public class DanaRKoreanPlugin implements PluginBase, PumpInterface, DanaRInterf
return useExtendedBoluses;
}
@Override
public void initialize() {
refreshDataFromPump("Initialization");
}
@Override
public boolean isInitialized() {
return pump.lastConnection.getTime() > 0 && !pump.isConfigUD && !pump.isEasyModeEnabled && pump.isExtendedBolusEnabled;

View file

@ -357,11 +357,6 @@ public class DanaRSPlugin implements PluginBase, PumpInterface, DanaRInterface,
}
// Pump interface
@Override
public void initialize() {
refreshDataFromPump("Initialization");
}
@Override
public boolean isInitialized() {
return pump.lastConnection.getTime() > 0;

View file

@ -209,11 +209,6 @@ public class DanaRv2Plugin implements PluginBase, PumpInterface, DanaRInterface,
return false;
}
@Override
public void initialize() {
refreshDataFromPump("Initialization");
}
@Override
public boolean isInitialized() {
return pump.lastConnection.getTime() > 0;

View file

@ -109,10 +109,6 @@ public class MDIPlugin implements PluginBase, PumpInterface {
return false;
}
@Override
public void initialize() {
}
@Override
public boolean isInitialized() {
return true;

View file

@ -164,10 +164,6 @@ public class VirtualPumpPlugin implements PluginBase, PumpInterface {
return Config.NSCLIENT && fromNSAreCommingFakedExtendedBoluses;
}
@Override
public void initialize() {
}
@Override
public boolean isInitialized() {
return true;