- refactor RileyLinkOmnipodService
This commit is contained in:
parent
54354fad89
commit
0b8168a62f
|
@ -46,10 +46,10 @@ import info.nightscout.androidaps.utils.sharedPreferences.SP;
|
||||||
*/
|
*/
|
||||||
public class RileyLinkOmnipodService extends RileyLinkService {
|
public class RileyLinkOmnipodService extends RileyLinkService {
|
||||||
|
|
||||||
@Inject AAPSLogger aapsLogger;
|
// @Inject AAPSLogger aapsLogger;
|
||||||
@Inject Context context;
|
// @Inject Context context;
|
||||||
@Inject OmnipodPumpPlugin omnipodPumpPlugin;
|
@Inject OmnipodPumpPlugin omnipodPumpPlugin;
|
||||||
@Inject SP sp;
|
// @Inject SP sp;
|
||||||
|
|
||||||
//private static final Logger LOG = LoggerFactory.getLogger(L.PUMPCOMM);
|
//private static final Logger LOG = LoggerFactory.getLogger(L.PUMPCOMM);
|
||||||
|
|
||||||
|
@ -63,11 +63,6 @@ public class RileyLinkOmnipodService extends RileyLinkService {
|
||||||
public RileyLinkOmnipodService() {
|
public RileyLinkOmnipodService() {
|
||||||
super();
|
super();
|
||||||
instance = this;
|
instance = this;
|
||||||
if (isLogEnabled())
|
|
||||||
aapsLogger.debug(LTag.PUMPCOMM,"RileyLinkOmnipodService newly constructed");
|
|
||||||
OmnipodUtil.setOmnipodService(this);
|
|
||||||
pumpStatus = (OmnipodPumpStatus) OmnipodPumpPlugin.getPlugin().getPumpStatusData();
|
|
||||||
//aapsLogger.debug(LTag.PUMPCOMM,"RRRRRRRRRR: " + pumpStatus);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -123,6 +118,12 @@ public class RileyLinkOmnipodService extends RileyLinkService {
|
||||||
// init rileyLinkCommunicationManager
|
// init rileyLinkCommunicationManager
|
||||||
initializeErosOmnipodManager();
|
initializeErosOmnipodManager();
|
||||||
// TODO Dash
|
// TODO Dash
|
||||||
|
|
||||||
|
if (isLogEnabled())
|
||||||
|
aapsLogger.debug(LTag.PUMPCOMM,"RileyLinkOmnipodService newly constructed");
|
||||||
|
OmnipodUtil.setOmnipodService(this);
|
||||||
|
pumpStatus = (OmnipodPumpStatus) OmnipodPumpPlugin.getPlugin().getPumpStatusData();
|
||||||
|
//aapsLogger.debug(LTag.PUMPCOMM,"RRRRRRRRRR: " + pumpStatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initializeErosOmnipodManager() {
|
private void initializeErosOmnipodManager() {
|
||||||
|
|
Loading…
Reference in a new issue