From fc36371ffa8f58c44f33399da0f855b4985d22f4 Mon Sep 17 00:00:00 2001 From: Andy Rozman Date: Sun, 31 Oct 2021 18:07:40 +0000 Subject: [PATCH] - trying to use old implementation (not setting type so that old one is taken over) --- .../pump/medtronic/data/MedtronicHistoryData.kt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/medtronic/src/main/java/info/nightscout/androidaps/plugins/pump/medtronic/data/MedtronicHistoryData.kt b/medtronic/src/main/java/info/nightscout/androidaps/plugins/pump/medtronic/data/MedtronicHistoryData.kt index a984e2f117..0f1e177de3 100644 --- a/medtronic/src/main/java/info/nightscout/androidaps/plugins/pump/medtronic/data/MedtronicHistoryData.kt +++ b/medtronic/src/main/java/info/nightscout/androidaps/plugins/pump/medtronic/data/MedtronicHistoryData.kt @@ -511,11 +511,10 @@ class MedtronicHistoryData @Inject constructor( timestamp = tryToGetByLocalTime(bolus.atechDateTime), amount = deliveredAmount, temporaryId = temporaryId, - type = type, + type = null, pumpId = bolus.pumpId, pumpType = medtronicPumpStatus.pumpType, - pumpSerial = medtronicPumpStatus.serialNumber, - ignoreBolusTypeOnUpdate = true) + pumpSerial = medtronicPumpStatus.serialNumber) aapsLogger.debug(LTag.PUMP, String.format(Locale.ENGLISH, "syncBolusWithTempId [date=%d, temporaryId=%d, pumpId=%d, insulin=%.2f, pumpSerial=%s] - Result: %b", bolus.atechDateTime, temporaryId, bolus.pumpId, deliveredAmount, @@ -524,11 +523,10 @@ class MedtronicHistoryData @Inject constructor( val result = pumpSync.syncBolusWithPumpId( timestamp = tryToGetByLocalTime(bolus.atechDateTime), amount = deliveredAmount, - type = type, + type = null, pumpId = bolus.pumpId, pumpType = medtronicPumpStatus.pumpType, - pumpSerial = medtronicPumpStatus.serialNumber, - ignoreBolusTypeOnUpdate = true) + pumpSerial = medtronicPumpStatus.serialNumber) aapsLogger.debug(LTag.PUMP, String.format(Locale.ENGLISH, "syncBolusWithPumpId [date=%d, pumpId=%d, insulin=%.2f, pumpSerial=%s] - Result: %b", bolus.atechDateTime, bolus.pumpId, deliveredAmount,