From a4be23d5ad9ecd62cb0390af79df9a909c49bd4d Mon Sep 17 00:00:00 2001 From: Andy Rozman Date: Sat, 15 May 2021 15:13:37 +0100 Subject: [PATCH] - added 2 loggings so that we can determine, what is the problem... --- .../plugins/pump/medtronic/data/MedtronicHistoryData.kt | 6 ++++++ 1 file changed, 6 insertions(+) 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 587d70e461..770b6b1b70 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 @@ -522,6 +522,8 @@ class MedtronicHistoryData @Inject constructor( if (!multiwave) { val entryWithTempId = findDbEntry(bolus, boluses) + aapsLogger.debug(LTag.PUMP, String.format("DD: entryWithTempId=%s", gson.toJson(entryWithTempId))) + if (entryWithTempId != null) { temporaryId = entryWithTempId.temporaryId pumpSyncStorage.removeBolusWithTemporaryId(temporaryId) @@ -647,6 +649,10 @@ class MedtronicHistoryData @Inject constructor( val tbrEntry = tempBasalProcessDTO.itemOne!!.getDecodedDataEntry("Object") as TempBasalPair if (entryWithTempId!=null) { + + aapsLogger.debug(LTag.PUMP, String.format("DD: tempIdEntry=%s, tbrEntry=%s, tempBasalProcessDTO=%s, pumpType=%s, serial=%s", + gson.toJson(entryWithTempId), gson.toJson(tbrEntry), gson.toJson(tempBasalProcessDTO), medtronicPumpStatus.pumpType, medtronicPumpStatus.serialNumber!!)) + val result = pumpSync.syncTemporaryBasalWithTempId( tryToGetByLocalTime(tempBasalProcessDTO.atechDateTime), tbrEntry.insulinRate,