EOpatch: call connectNewPump on activation

This commit is contained in:
Milos Kozak 2022-11-03 20:18:42 +01:00
parent 84d49fc453
commit ba11d8ba25

View file

@ -34,6 +34,7 @@ import javax.inject.Inject;
import javax.inject.Singleton; import javax.inject.Singleton;
import info.nightscout.androidaps.data.DetailedBolusInfo; import info.nightscout.androidaps.data.DetailedBolusInfo;
import info.nightscout.androidaps.interfaces.PumpSync;
import info.nightscout.androidaps.plugins.pump.eopatch.EoPatchRxBus; import info.nightscout.androidaps.plugins.pump.eopatch.EoPatchRxBus;
import info.nightscout.androidaps.plugins.pump.eopatch.alarm.AlarmCode; import info.nightscout.androidaps.plugins.pump.eopatch.alarm.AlarmCode;
import info.nightscout.androidaps.plugins.pump.eopatch.ble.task.ActivateTask; import info.nightscout.androidaps.plugins.pump.eopatch.ble.task.ActivateTask;
@ -109,6 +110,7 @@ public class PatchManagerImpl{
@Inject SP sp; @Inject SP sp;
@Inject AAPSLogger aapsLogger; @Inject AAPSLogger aapsLogger;
@Inject AapsSchedulers aapsSchedulers; @Inject AapsSchedulers aapsSchedulers;
@Inject PumpSync pumpSync;
@Inject StartBondTask START_BOND; @Inject StartBondTask START_BOND;
@Inject GetPatchInfoTask GET_PATCH_INFO; @Inject GetPatchInfoTask GET_PATCH_INFO;
@ -379,6 +381,7 @@ public class PatchManagerImpl{
if (success) { if (success) {
TaskBase.enqueue(TaskFunc.LOW_RESERVOIR); TaskBase.enqueue(TaskFunc.LOW_RESERVOIR);
TaskBase.enqueue(TaskFunc.INFO_REMINDER); TaskBase.enqueue(TaskFunc.INFO_REMINDER);
pumpSync.connectNewPump(true);
} }
}); });
} }