Turn MedtronicCommunicationManager into a singleton

This commit is contained in:
Steffen Müthing 2020-08-19 13:08:34 +02:00
parent 680f3f94d6
commit ba69b2ffd3

View file

@ -10,6 +10,7 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import javax.inject.Inject; import javax.inject.Inject;
import javax.inject.Singleton;
import info.nightscout.androidaps.logging.LTag; import info.nightscout.androidaps.logging.LTag;
import info.nightscout.androidaps.plugins.pump.common.data.PumpStatus; import info.nightscout.androidaps.plugins.pump.common.data.PumpStatus;
@ -55,6 +56,7 @@ import info.nightscout.androidaps.plugins.pump.medtronic.util.MedtronicUtil;
* This was mostly rewritten from Original version, and lots of commands and * This was mostly rewritten from Original version, and lots of commands and
* functionality added. * functionality added.
*/ */
@Singleton
public class MedtronicCommunicationManager extends RileyLinkCommunicationManager { public class MedtronicCommunicationManager extends RileyLinkCommunicationManager {
@Inject MedtronicPumpStatus medtronicPumpStatus; @Inject MedtronicPumpStatus medtronicPumpStatus;