From 29d0545d47ad052a17a371e3c7bd0892cc9a9bac Mon Sep 17 00:00:00 2001 From: Andy Rozman Date: Thu, 25 Jul 2019 13:41:57 +0100 Subject: [PATCH] - fixed manufacturer and model --- .../plugins/pump/medtronic/MedtronicPumpPlugin.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/pump/medtronic/MedtronicPumpPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/pump/medtronic/MedtronicPumpPlugin.java index 9a2a49ebf6..f67082cd93 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/pump/medtronic/MedtronicPumpPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/pump/medtronic/MedtronicPumpPlugin.java @@ -39,6 +39,7 @@ import info.nightscout.androidaps.interfaces.PluginDescription; import info.nightscout.androidaps.interfaces.PluginType; import info.nightscout.androidaps.interfaces.PumpInterface; import info.nightscout.androidaps.logging.L; +import info.nightscout.androidaps.plugins.common.ManufacturerType; import info.nightscout.androidaps.plugins.configBuilder.ConfigBuilderPlugin; import info.nightscout.androidaps.plugins.general.actions.defs.CustomAction; import info.nightscout.androidaps.plugins.general.actions.defs.CustomActionType; @@ -1370,13 +1371,13 @@ public class MedtronicPumpPlugin extends PumpPluginAbstract implements PumpInter } @Override - public String manufacter() { - return "Medtronic"; + public ManufacturerType manufacturer() { + return getMDTPumpStatus().pumpType.getManufacturer(); } @Override - public String model() { - return getMDTPumpStatus().medtronicDeviceType.getPumpModel(); + public PumpType model() { + return getMDTPumpStatus().pumpType; } @Override